IDirectoryObject::GetObjectInformation

Gets a pointer to a structure containing information about the identity and location of a directory service object.

HRESULT GetObjectInformation(
  PADS_OBJECT_INFO * ppObjInfo  //Information about the DS object
);
 

Parameters

ppObjInfo
[out] Address of a pointer to an ADS_OBJECT_INFO structure containing information about the requested directory service object. If ppObjInfo is NULL on return, GetObjectInformation cannot obtain the information requested.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK
The information was obtained successfully.

Remarks

The caller is responsible for releasing the ADS_OBJECT_INFO structure that GetObjectInformation creates.

Automation clients must call IADs::GetInfo