| DirectX SDK | 
The IDirectPlay4::DeletePlayerFromGroup method removes a player from a group.
HRESULT DeletePlayerFromGroup( DPID idGroup, DPID idPlayer );
Returns DP_OK if successful, or one of the following error messages otherwise:
| DPERR_CONNECTIONLOST | 
| DPERR_INVALIDGROUP | 
| DPERR_INVALIDOBJECT | 
| DPERR_INVALIDPLAYER | 
A DPMSG_DELETEPLAYERFROMGROUP system message is generated to inform the other players of this change. For a list of system messages, see Using System Messages.
A player can delete any player from a group, even if that group was created by some other computer.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.
  Import Library: Use dplayx.lib.