Platform SDK: DirectX

DirectPlay4.Close

The DirectPlay4.Close method closes a previously opened session. Any locally created groups will migrate to be owned by the host of the session.

object.Close() 

Parameters

object
Object expression that resolves to a DirectPlay4 object.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS
DPERR_NOSESSIONS

Remarks

All locally created players will be destroyed and appropriate DPSYS_DELETEPLAYERFROMGROUP and DPSYS_DESTROYPLAYERORGROUP system messages will be sent to other session participants.

See Also

DirectPlay4.DestroyPlayer, DirectPlay4.Open