IDsBrowseDomainTree 接口 (dsclient.h)

应用程序使用 IDsBrowseDomainTree 接口显示域浏览器对话框和/或获取与给定计算机相关的信任域列表。

继承

IDsBrowseDomainTree 接口继承自 IUnknown 接口。 IDsBrowseDomainTree 也包含以下类型的成员:

方法

IDsBrowseDomainTree 接口包含以下方法。

 
IDsBrowseDomainTree::BrowseTo

IDsBrowseDomainTree::BrowseTo 方法显示用于浏览域的对话框。
IDsBrowseDomainTree::FlushCachedDomains

IDsBrowseDomainTree::FlushCachedDomains 方法释放缓存的域列表。
IDsBrowseDomainTree::FreeDomains

IDsBrowseDomainTree::FreeDomains 方法释放由 IDsBrowseDomainTree::GetDomains 方法分配的内存。
IDsBrowseDomainTree::GetDomains

IDsBrowseDomainTree::GetDomains 方法检索当前计算机的信任域。 当前计算机是使用 IDsBrowseDomainTree::SetComputer 方法设置的。
IDsBrowseDomainTree::SetComputer

指定此 IDsBrowseDomainTree 接口实例要使用的计算机和凭据。

注解

此接口的实例是使用CLSID_DsDomainTreeBrowser类标识符调用 CoCreateInstance 创建的,如下所示。

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();
}

要求

要求
最低受支持的客户端 Windows Vista
最低受支持的服务器 Windows Server 2008
目标平台 Windows
标头 dsclient.h

另请参阅

CoCreateInstance