UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dsclient.IDsDisplaySpecifier.GetDisplaySpecifier |
IDsDisplaySpecifier::GetDisplaySpecifier (dsclient.h) |
The IDsDisplaySpecifier::GetDisplaySpecifier method binds to the display specifier object for a given class in Active Directory Domain Services. |
|
ad\idsdisplayspecifier_getdisplayspecifier.htm |
ad |
c4fc25f6-0157-406d-b523-8542183291ed |
12/05/2018 |
GetDisplaySpecifier, GetDisplaySpecifier method [Active Directory], GetDisplaySpecifier method [Active Directory],IDsDisplaySpecifier interface, IDsDisplaySpecifier interface [Active Directory],GetDisplaySpecifier method, IDsDisplaySpecifier.GetDisplaySpecifier, IDsDisplaySpecifier::GetDisplaySpecifier, _glines_idsdisplayspecifier_getdisplayspecifier, ad.idsdisplayspecifier__getdisplayspecifier, ad.idsdisplayspecifier_getdisplayspecifier, dsclient/IDsDisplaySpecifier::GetDisplaySpecifier |
dsclient.h |
Windows |
Windows Vista |
Windows Server 2008 |
Dsadmin.dll |
Windows |
19H1 |
|
|
|
|
|
|
The IDsDisplaySpecifier::GetDisplaySpecifier method binds to the display specifier object for a given class in Active Directory Domain Services.
Pointer to a null-terminated Unicode string that contains the name of the object class to retrieve the display specifier for.
Contains the interface identifier of the desired interface.
Pointer to an interface pointer that receives the display specifier of the object class.
Returns a standard HRESULT value including the following.
This method uses the ADsOpenObject function to bind to the display specifier object of the given class. If that fails, it attempts to bind to the display specifier in the user locale. If this fails again, it binds to the display specifier in the default locale.
This method uses the server and user credentials set by a previous call to IDsDisplaySpecifier::SetServer.
The following code example demonstrates how to call this method.
HRESULT hr;
IDsDisplaySpecifier *pDS;
hr = CoCreateInstance(CLSID_DsDisplaySpecifier,
NULL,
CLSCTX_INPROC_SERVER,
IID_IDsDisplaySpecifier,
(void**)&pDS);
if(SUCCEEDED(hr))
{
IADs *pads;
hr = pDS->GetDisplaySpecifier(L"user", IID_IADs, (LPVOID*)&pads);
if(SUCCEEDED(hr))
{
pads->Release();
}
pDS->Release();
}