Microsoft DirectX 8.1 (Visual Basic) |
Called when a player is destroyed.
DestroyPlayer( _ lPlayerID As Long, _ lReason As Long, _ fRejectMsg As Boolean)
When the server closes a session, its DirectPlay8Event.DestroyPlayer method is called once for all connected players. Because the server knows that it is disconnecting, this is normal behavior, and the lReason parameter is set to DPNDESTROYPLAYERREASON_NORMAL. The DPNDESTROYPLAYERREASON_SESSIONTERMINATED value is only set for unexpected disconnections.