Directory Services |
The IDsBrowseDomainTree::SetComputer method specifies the computer and credentials to be used by this instance of the IDsBrowseDomainTree interface.
HRESULT SetComputer( LPWCSTR pszComputerName, LPCWSTR pszUserName, LPCWSTR pszPassword );
If this method is not called, the local host is assumed as the default computer.
When SetComputer is called on a particular IDsBrowseDomainTree instance, IDsBrowseDomainTree::FlushCachedDomains must be called before SetComputer is called again.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsclient.h.
IDsBrowseDomainTree::FlushCachedDomains, IDsBrowseDomainTree