IDirectPlay::EnumGroupPlayers

HRESULT EnumGroupPlayers(DPID pidGroupPID,

LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback,

LPVOID lpContext, DWORD dwFlags);

Enumerates all of the players of a particular group existing in the current session.

·Returns DP_OK if successful, or one of the following error messages otherwise:

DPERR_EXCEPTION DPERR_INVALIDFLAGS
DPERR_INVALIDOBJECT DPERR_INVALIDPLAYER

pidGroupPID

Player ID of the group to be enumerated.

lpEnumPlayersCallback

Address for the EnumPlayersCallback function to be called for every player in the group.

lpContext

Address for a caller-defined context that is passed to each enumeration callback.

dwFlags

This parameter is not currently used and must be set to 0.