Microsoft DirectX 8.1 (C++)

IDirectPlay8Client::GetConnectionInfo

Retrieves statistical information about the connection between the local client and the server.

HRESULT GetConnectionInfo(
DPN_CONNECTION_INFO *const pdnConnectInfo,
const DWORD dwFlags
);

Parameters

pdnConnectInfo
[out] Pointer to a DPN_CONNECTION_INFO structure to retrieve information about the specified connection. You must set the dwSize member of this structure to an appropriate value.
dwFlags
[in] Reserved. Must be 0.

Return Values

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDOBJECT
DPNERR_INVALIDPARAM
DPNERR_INVALIDPOINTER
DPNERR_UNINITIALIZED

Remarks

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

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dplay8.h.