IDirectPlay2::DeletePlayerFromGroup

HRESULT DeletePlayerFromGroup(DPID idGroup,

DPID idPlayer);

Removes a player from a group.

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

DPERR_INVALIDOBJECT

DPERR_INVALIDPLAYER

idGroup

Group ID of the group to be adjusted.

idPlayer

Player ID of the player to be removed from the group.

A DPSYS_DELETEPLAYERFROMGROUP system message is generated to inform the other players of this change. For a list of system messages, see Using System Messages.