Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.TerminateSession

Terminates the current Microsoft® DirectPlay® session.

TerminateSession(lFlags As Long, _
    UserData As Any, _
    UserDataSize As Long)

Parts

lFlags
Reserved. Must be 0.
UserData
Pointer to termination data.
UserDataSize
Size of data contained in the UserData parameter.

Remarks

This method may be called only by the host player.

When this method is called, the DirectPlay8Event.TerminateSession method is called in the message handler of all players connected to the session.