Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Server.GetConnectionInfo

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

GetConnectionInfo(idPlayer As Long, [lFlags As Long]) As DPN_CONNECTION_INFO

Parts

idPlayer
Long value specifying the identifier of the player.
lFlags
Reserved. Must be 0.

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.