Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Event.DestroyPlayer

Called when a player is destroyed.

DestroyPlayer( _
    lPlayerID As Long, _
    lReason As Long, _
    fRejectMsg As Boolean)

Parts

lPlayerID
Long value set to the player's ID.
lReason
Long value that is set to one of the values from the CONST_DPNDESTROYPLAYERREASON enumeration to indicate the reason that the group was destroyed.
fRejectMsg
Parameter is not supported in this release.

Remarks

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.