IADsGroup::IsMember

Determines if an Active Directory object is a member of the specified group.

HRESULT IADsGroup::IsMember(
  BSTR bstMember,         //ADsPath of object to check
  VARIANT_BOOL * bMember  //TRUE if object is a member
);
 

Parameter

pbstrName
[in] ADsPath name of the Active Directory object to be checked for membership in the group object that supports this interface method.
bMember
[out] TRUE if this object is a member of this group.

Return Values

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

S_OK
The indicated object is a member of this group.
Notes to Implementers

If a group is allowed to have other groups as members, you may need to support this as a recursive method.

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