Platform SDK: Active Directory, ADSI, and Directory Services |
The IDsBrowseDomainTree::BrowseTo method creates and displays a modal dialog as a domain browser.
HRESULT BrowseTo( HWND hwdnParent, LPWSTR *ppszTargetPath, DWORD dwFlags );
dwFlags | Description |
---|---|
DBDTF_RETURNFQDN | If set, on return ppszTargetPath contains fully qualified domain names, such as "DC=myDom, DC=Fabrikam, DC=com"; otherwise, it contains domain name, such as "myDom", "Fabrikam.com". |
DBDTF_RETURNMIXEDDOMAINS | Show downlevel trust domains. |
DBDTF_RETURNEXTERNAL | Show external trust domains. |
DBDTF_RETURNINBOUND | If set show trusting domains, otherwise, show trusted domains. |
DBDTF_RETURNINOUTBOUND | Show both trusted and trusting domains. |
This method returns an HRESULT value.
Upon successful return, for example, when the user selects and entry from the browser and clicks the OK button, this method returns the selection in a string that is allocated using the CoTaskMemAlloc function. The caller of this method should use CoTaskMemFree to free the string when it is no longer needed.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsclient.h.
Library: Included as a resource in Dsuiext.dll.
Active Directory Display Interfaces, CoTaskMemAlloc, CoTaskMemFree, DOMAINDESC, DOMAINTREE, IDsBrowseDomainTree