Microsoft DirectX 8.0 (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
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
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: Available as a redistributable for Windows 2000 and later.
  Windows 95/98: Available as a redistributable for Windows 95 and later.
  Header: Declared in Dplay8.h.