DirectX SDK |
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()
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 |
All locally created players will be destroyed and appropriate DPSYS_DELETEPLAYERFROMGROUP and DPSYS_DESTROYPLAYERORGROUP system messages will be sent to other session participants.