Gets the definition of one or more specified attributes of the directory service object.
HRESULT GetObjectAttributes(
LPWSTR * pAttributeNames, //Names of requested attributes
DWORD dwNumberAttributes, //Number of attributes requested
PADS_ATTR_INFO * ppAttributeEntries, //Definitions of requested
// attributes
DWORD * pdwNumAttributesReturned //Number of attributes obtained
);
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
The caller is responsible for releasing the array of ADS_ATTR_DEF structures that GetObjectAttributes creates.