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
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
If a group is allowed to have other groups as members, you may need to support this as a recursive method.
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.
IADsMembers, ADSI Group Object, ADSI Members Object