Microsoft DirectX 8.0 (C++)

IDirectPlay8Server::EnumGroupMembers

Retrieves a list of all players in a group.

HRESULT EnumGroupMembers(
const DPNID dpnid,
DPNID *const prgdpnid,
DWORD *const pcdpnid,
const DWORD dwFlags
);

Parameters

dpnid
Variable of type DPNID that specifies the group that contains the players to enumerate.
prgdpnid
Pointer to an array that contains the identifiers of the group's players.
pcdpnid
Pointer to a variable of type DWORD that contains the number of player identifiers in the prgdpnid parameter. If the buffer is too small, this method returns DPNERR_BUFFERTOOSMALL and this parameter is set to the number of entries that are required.
dwFlags
Reserved. Must be 0.

Return Values

Returns S_OK if successful, or one of the following error values.

DPNERR_BUFFERTOOSMALL
DPNERR_INVALIDFLAGS
DPNERR_INVALIDGROUP

Requirements

  Windows NT/2000: Available as a redistributable for Windows 2000 and later.
  Windows 95/98: Available as a redistributable for Windows 95 and later.
  Header: Declared in Dplay8.h.