Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Event.TerminateSession

Called in the message handler for each session player after a call to DirectPlay8Peer.TerminateSession.

TerminateSession( _
dpnotify As DPNMSG_TERMINATE_SESSION, _
fRejectMsg As Boolean)

Parts

dpnotify
DPNMSG_TERMINATE_SESSION message type containing the result of the message send.
fRejectMsg
Parameter is not supported in this release.

Remarks

In a peer-peer session that permits host-migration, the host migrates if the current host calls DirectPlay8Peer.Close or stops responding. When this event occurs:

To prevent host-migration, the current host must terminate the session by calling DirectPlay8Peer.TerminateSession. When the host terminates a session this way:

In a peer-peer game that does not permit host-migration, the session is terminated if the host calls DirectPlay8Peer.Close, or stops responding. When this event occurs:

In a client/server game, the session is terminated if the host calls DirectPlay8Server.Close or stops responding. When this event occurs: