Directory Services |
The IDsBrowseDomainTree::GetDomains method retrieves the trust domains of the current computer. The current computer is set using the IDsBrowseDomainTree::SetComputer method.
HRESULT GetDomains( PDOMAINTREE* ppDomainTree, DWORD dwFlags );
Value | Meaning |
---|---|
DBDTF_RETURNFQDN | The pszNCName members of the DOMAINDESC structures will receive the fully-qualified domain names. The fully-qualified domain name takes the form "DC=myDom, DC=Fabrikam, DC=com" as opposed to "myDom.Fabrikam.com". |
DBDTF_RETURNMIXEDDOMAINS | The method will return downlevel trust domains. |
DBDTF_RETURNEXTERNAL | The method will return external trust domains. |
DBDTF_RETURNINBOUND | If this flag is set, the method returns trusting domains. If this flag is not set, the method returns trusted domains. |
DBDTF_RETURNINOUTBOUND | The method will return both trusted and trusting domains. |
For more information about how to access and use the data provided by this method, see Domain Browser.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsclient.h.
DOMAINTREE, DOMAINDESC, IDsBrowseDomainTree::FreeDomains, Domain Browser, IDsBrowseDomainTree