IDirectPlay::Close

HRESULT Close();

Closes a previously opened communication channel. All locally created players will be destroyed, with corresponding DPMSG_DELETEPLAYER system messages sent to other session participants.

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

DPERR_INVALIDOBJECT DPERR_INVALIDPARAMS