IDirectPlay::DestroyGroup

HRESULT DestroyGroup(DPID pidID);

Deletes a group from the session. The player ID belonging to this group will not be reused during the current session.

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

DPERR_INVALIDOBJECT DPERR_INVALIDPLAYER

pidID

Player ID of the group being removed from the game.

It is not necessary to empty a group before deleting it. The individual players belonging to the group are not destroyed; however, they will be notified by a DPMSG_DELETEPLAYER system message that the group has been removed from the session.