Skip to content

Latest commit

 

History

History
126 lines (89 loc) · 4.24 KB

nf-dsclient-idsdisplayspecifier-getdisplayspecifier.md

File metadata and controls

126 lines (89 loc) · 4.24 KB
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.
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
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
IDsDisplaySpecifier::GetDisplaySpecifier
dsclient/IDsDisplaySpecifier::GetDisplaySpecifier
c++
APIRef
kbSyntax
COM
Dsadmin.dll
IDsDisplaySpecifier.GetDisplaySpecifier

IDsDisplaySpecifier::GetDisplaySpecifier

-description

The IDsDisplaySpecifier::GetDisplaySpecifier method binds to the display specifier object for a given class in Active Directory Domain Services.

-parameters

-param pszObjectClass [in]

Pointer to a null-terminated Unicode string that contains the name of the object class to retrieve the display specifier for.

-param riid [in]

Contains the interface identifier of the desired interface.

-param ppv [in, out]

Pointer to an interface pointer that receives the display specifier of the object class.

-returns

Returns a standard HRESULT value including the following.

-remarks

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.

Examples

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

-see-also

ADsOpenObject

Display Interfaces in Active Directory Domain Services

IDsDisplaySpecifier

IDsDisplaySpecifier::SetServer