Microsoft DirectX 8.1 (Visual Basic) |
To leave a session, terminate the connection by calling DirectPlay8Peer.Close. Microsoft® DirectPlay® will call the session members DirectPlay8Event.DestroyPlayer method with the lPlayerID parameter set to the player's ID.
If you are the session host, leaving also terminates the session unless you configured the session to allow host migration. See Host Migration for details.