| Platform SDK: DirectX | 
The IDirectPlay4::Close method closes a previously opened session. Any locally created groups will migrate to be owned by the host of the session.
HRESULT Close( );
None.
Returns DP_OK if successful, or one of the following error values otherwise:
| DPERR_INVALIDOBJECT | 
| DPERR_INVALIDPARAMS | 
| DPERR_NOSESSIONS | 
All locally created players will be destroyed and appropriate DPMSG_DELETEPLAYERFROMGROUP and DPMSG_DESTROYPLAYERORGROUP system messages will be sent to other session participants.
  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.
IDirectPlay4::DestroyPlayer, DPMSG_DESTROYPLAYERORGROUP, IDirectPlay4::Open