Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.DestroyPeer

Deletes a peer from the session.

DestroyPeer(idClient As Long, _
    lFlags As Long, _
    UserData As Any, _
    UserDataSize As Long)

Parts

idClient
Long value that specifies the identifier of the peer to delete.
lFlags
Reserved. Must be 0.
UserData
Pointer that describes additional delete data information that is sent to the peer.
UserDataSize
Long value that specifies the size of the data contained in the UserData parameter.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_NOTHOST
DPNERR_INVALIDPLAYER
DPNERR_INVALIDPARAM

Remarks

This method calls the DirectPlay8Event.DestroyPlayer method in the destroyed player's message handler.