IADsUser::Groups

Gets an IADsMembers pointer on a collection of ADSI group objects representing the groups to which this user belongs.

HRESULT IADsUser::Groups(
  IADsMembers ** ppGroups  //Interface on a members object
);
 

Parameter

ppGroups
[out] Indirect pointer to an IADsMembers interface on a members object that can be enumerated using IEnumVARIANT to determine the groups to which this end-user belongs.

Return Values

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

S_OK
The IADsMembers interface pointer on a group object representing this user's memberships in group was retrieved successfully.

QuickInfo

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

See Also

ADSI User Object