IDsBrowseDomainTree interface (dsclient.h)

The IDsBrowseDomainTree interface is used by an application to display a domain browser dialog box and/or obtain a list of trust domains related to a given computer.

Inheritance

The IDsBrowseDomainTree interface inherits from the IUnknown interface. IDsBrowseDomainTree also has these types of members:

Methods

The IDsBrowseDomainTree interface has these methods.

 
IDsBrowseDomainTree::BrowseTo

The IDsBrowseDomainTree::BrowseTo method displays a dialog box used to browse for a domain.
IDsBrowseDomainTree::FlushCachedDomains

The IDsBrowseDomainTree::FlushCachedDomains method frees the cached domain list.
IDsBrowseDomainTree::FreeDomains

The IDsBrowseDomainTree::FreeDomains method frees the memory allocated by the IDsBrowseDomainTree::GetDomains method.
IDsBrowseDomainTree::GetDomains

The IDsBrowseDomainTree::GetDomains method retrieves the trust domains of the current computer. The current computer is set using the IDsBrowseDomainTree::SetComputer method.
IDsBrowseDomainTree::SetComputer

Specifies the computer and credentials to be used by this instance of the IDsBrowseDomainTree interface.

Remarks

An instance of this interface is created by calling CoCreateInstance with the CLSID_DsDomainTreeBrowser class identifier as shown below.

HRESULT hr = S_OK;
IDsBrowseDomainTree *pDSB = NULL;

hr = CoCreateInstance(    CLSID_DsDomainTreeBrowser,
                          NULL,
                          CLSCTX_INPROC_SERVER,
                          IID_IDsBrowseDomainTree,
                          (void**)&pDSB);

if(SUCCEEDED(hr))
{
    //use the IDsBrowseDomainTree object

    //release the IDsBrowseDomainTree object
    pDSB->Release();
}

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsclient.h

See also

CoCreateInstance