Platform SDK: Active Directory, ADSI, and Directory Services |
The IDsDisplaySpecifier::SetServer method allows you to specify a preferred server from which display specifiers are to be retrieved. You must specify user credentials required for binding.
HRESULT SetServer( LPCWSTR pszServer, LPCWSTR pszUserName, LPCWSTR pszPassword, DWORD dwFlags );
dwFlags | Description |
---|---|
DSSF_SIMPLEAUTHENTICATE | Use simple bind, instead of secure authentication. |
DSSF_DsAVAILABLE | Ignore checking whether the directory server is available. |
The method returns an HRESULT value.
The information is store in the object's cache. Actual binding does not take place until you call the IDsDisplaySpecifier::GetDisplaySpecifier method later.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsclient.h.
Library: Included as a resource in Dsuiext.dll.
Active Directory Display Interfaces, IDsDisplaySpecifier, IDsDisplaySpecifier::GetDisplaySpecifier