IDirectoryObject::SetObjectAttributes

Modifies specified attribute definitions of the directory service object.

HRESULT SetObjectAttributes(
  PADS_ATTR_INFO pAttributeEntries,
                             //Attributes and values to be set
  DWORD dwNumberAttributes,  //Number of attributes to be set
  DWORD * pdwNumAttributesModified
                             //Number of attributes set
);
 

Parameters

pAttributeEntries
[in] Array of attribute definitions to be modified. Each attribute definition contains the name of the attribute and the value it is to be set to as defined in ADS_ATTR_INFO. .
dwNumAttributes
[in] Number of attributes to be modified. This value should correspond to the size of the pAttributeEntries array.
pdwNumAttributesModified
[out] Pointer to a DWORD variable containing the number of attributes that SetObjectAttributes modified.

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 attributes were set successfully.