Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.GetPeerAddress

Retrieves the address for the specified remote player in the session.

GetPeerAddress(idPlayer As Long) As DirectPlay8Address

Parts

idPlayer
Long value specifying the identification of the player.

Return Values

Returns a DirectPlay8Address object that specifies the address of the player.

Error Codes

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

DPNERR_INVALIDOBJECT
DPNERR_UNINITIALIZED

Remarks

This method cannot be used to retrieve the address of the local player. If the player calls this method on his or her own ID, it returns a DPNERR_INVALIDPLAYER error message.