IRTCBuddy2::EnumerateGroups

The EnumerateGroups method returns an enumerated list of the groups this buddy belongs to. This method is intended for C and C++ applications. Visual Basic applications should use the get_Groups method.

HRESULT EnumerateGroups(IRTCCollection**ppCollection);

Parameters

  • ppCollection
    [out] Pointer to an IRTCEnumGroups interface on an enumeration object containing an IRTCBuddyGroup pointer for each group this buddy belongs to. This call adds a reference to the enumeration object, which the call is responsible for releasing.

Return Values

RTC methods may return an RTC_E_ constant.

Value Meaning
E_FAIL The local group list was not created, or the ppCollection parameter is not a valid pointer.
E_OUTOFMEMORY Insufficient memory to perform this operation.

Requirements

Redistributable: Requires Rtcdll.dll on Windows 2000, Windows XP, and Windows Server 2003.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCBuddy2 is defined as 102F9588-23E7-40e3-954D-CD7A1D5C0361.

See Also

IRTCBuddy2::get_Groups, IRTCBuddy2, IRTCBuddy