IADsGroup::Add

Adds an ADSI object to an existing group.

HRESULT IADsGroup::Add(
  BSTR bstrNewItem  //ADsPath of the object to add
);
 

Parameter

bstrNewItem
[in] ADsPath of the object being added to the group.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The named object has been successfully added to this group.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsMembers, ADSI Group Object, ADSI Members Object