[This is preliminary documentation and subject to change.]
The MprAdminGetPDCServer function retrieves the name of the server with the master User Accounts Subsystem (UAS) from either a domain name or a server name. This server will be either the primary domain controller or a backup domain controller. Either the domain name parameter or the server name parameter may be NULL, but not both.
DWORD MprAdminGetPDCServer(
const WCHAR * lpwsDomainName, // pointer to domain name
const WCHAR * lpwsServerName, // pointer to server name
LPWSTR lpwsPDCServer // pointer to buffer to receive
// name of server with UAS
);
If the function succeeds, the return value will be NO_ERROR.
If the function fails the return value will be one of the following values.
Value | Meaning |
---|---|
NERR_DCNotFound | Could not find the domain controller for the domain. |
ERROR_INVALID_NAME | The name could not be found. |
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in mprapi.h.
Import Library: Link with mprapi.lib.