Directory Services |
The IDsDisplaySpecifier::SetServer method specifies the server from which display specifier data is obtained.
HRESULT SetServer( LPCWSTR pszServer, LPCWSTR pszUserName, LPCWSTR pszPassword, DWORD dwFlags );
Value | Meaning |
---|---|
DSSSF_SIMPLEAUTHENTICATE | The IDsDisplaySpecifier object uses simple authentication instead of secure authentication. |
DSSSF_DSAVAILABLE | The IDsDisplaySpecifier object will not check whether the directory server is available. |
Return Code | Description |
---|---|
S_OK | The method was successful. |
E_OUTOFMEMORY | A memory allocation failure occurred. |
The server data is cached by the IDsDisplaySpecifier object. The IDsDisplaySpecifier object does not actually bind to the server until a specific method, such as IDsDisplaySpecifier::GetDisplaySpecifier, is called.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsclient.h.
IDsDisplaySpecifier::GetDisplaySpecifier, IDsDisplaySpecifier, Active Directory Display Interfaces