Microsoft DirectX 8.0 (Visual Basic)

DirectPlay8Server.GetConnectionInfo

Retrieves statistical information about the connection between the specified player and the server.

GetConnectionInfo(idPlayer As Long) As DPN_CONNECTION_INFO

Parameter

idPlayer
Long value specifying the identifier of the player.

Return Values

Returns a DPN_CONNECTION_INFO type to retrieve information about the specified connection.

Error Codes

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

DPNERR_INVALIDOBJECT
DPNERR_INVALIDPOINTER
DPNERR_INVALIDPARAM
DPNERR_UNINITIALIZED

Remarks

This method can be called only after a successful Connect call has completed.