IADsADSystemInfo::GetAnyDCName method (iads.h)
The IADsADSystemInfo::GetAnyDCName method retrieves the DNS name of a domain controller in the local computer's domain.
Syntax
HRESULT GetAnyDCName(
[out] BSTR *pszDCName
);
Parameters
[out] pszDCName
Name of a domain controller, such as "ADServer1.domain1.Fabrikam.com".
Return value
This method supports the standard HRESULT return values. For more information, see ADSI Error Codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | iads.h |
DLL | Activeds.dll |