Directory Services

IDsObjectPicker::Initialize

The IDsObjectPicker::Initialize method initializes the object picker dialog box with data about the scopes, filters, and options used by the object picker dialog box.

HRESULT Initialize( 
  PDSOP_INIT_INFO pInitInfo
);

Parameters

pInitInfo
Pointer to a DSOP_INIT_INFO structure that contains the initialization data.

Return Values

Returns a standard error code or one of the following values.
S_OK
The method succeeded.
E_INVALIDARG
The contents of one or more of the members of pInitInfo are invalid.
E_OUTOFMEMORY
A memory allocation error occurred.

Remarks

IDsObjectPicker::Initialize can be called more than once and the last call takes precedence. The IDsObjectPicker object will completely re-initialize itself in response to this method.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Objsel.h.

See Also

DSOP_INIT_INFO, IDsObjectPicker, Directory Object Picker