IADsPropertyList::GetPropertyItem
Gets an item from the property list.
HRESULT GetPropertyItem(
BSTR bstrName, //Name of requested item
LONG lnADsType, //ADSI type of the property
VARIANT * pVariant //Property item requested
);
Parameters
-
[in] bstrName
-
Name of the requested property.
-
[in] lnADsType
-
Type to be used in interpreting the requested property. Values are taken from the ADSTYPE enumeration.
-
[out] pVariant
-
Address of a method-allocated variant containing the requested property item. If pVariant is NULL on return, GetPropertyItem could not obtain the requested item.
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 property item was successfully obtained.
Remarks
The caller is responsible for freeing the VARIANT variable allocated by GetPropertyItem.