Skip to content

Latest commit

 

History

History
83 lines (67 loc) · 3.01 KB

nn-objsel-idsobjectpicker.md

File metadata and controls

83 lines (67 loc) · 3.01 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
NN:objsel.IDsObjectPicker
IDsObjectPicker (objsel.h)
The IDsObjectPicker interface is used by an application to initialize and display an object picker dialog box. To create an instance of this interface, call CoCreateInstance with the CLSID_DsObjectPicker class identifier as shown below.
IDsObjectPicker
IDsObjectPicker interface [Active Directory]
IDsObjectPicker interface [Active Directory]
described
_glines_idsobjectpicker
ad.idsobjectpicker
objsel/IDsObjectPicker
ad\idsobjectpicker.htm
ad
f2f9da7d-7a09-4b49-a750-078a4573e213
12/05/2018
IDsObjectPicker, IDsObjectPicker interface [Active Directory], IDsObjectPicker interface [Active Directory],described, _glines_idsobjectpicker, ad.idsobjectpicker, objsel/IDsObjectPicker
objsel.h
Windows
Windows Vista
Windows Server 2008
Objsel.dll
Windows
19H1
IDsObjectPicker
objsel/IDsObjectPicker
c++
APIRef
kbSyntax
COM
Objsel.dll
IDsObjectPicker

IDsObjectPicker interface

-description

The IDsObjectPicker interface is used by an application to initialize and display an object picker dialog box. To create an instance of this interface, call CoCreateInstance with the CLSID_DsObjectPicker class identifier as shown below.

HRESULT hr = S_OK;
IDsObjectPicker *pDsObjectPicker = NULL;
 
hr = CoCreateInstance(CLSID_DsObjectPicker,
             NULL,
             CLSCTX_INPROC_SERVER,
             IID_IDsObjectPicker,
             (void **) &pDsObjectPicker);

The IDsObjectPicker implemented by the system supports both apartment and free-threading models and is thread safe. In practice, this means that a call to the methods of this interface will block until no other thread of your application is calling any other method on that instance of the interface.

-inheritance

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

-remarks

It is acceptable to create and initialize a single instance of the IDsObjectPicker interface and then make multiple calls to InvokeDialog without having to reinitializing the interface.

-see-also

CoCreateInstance

Directory Object Picker