IDirectPlay8Client::GetConnectionInfo Method

DirectPlay

 
Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDirectPlay8Client::GetConnectionInfo Method


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

Syntax

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 Value

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

DPNERR_INVALIDOBJECTThe Microsoft® DirectPlay® object pointer is invalid.
DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DPNERR_INVALIDPOINTERPointer specified as a parameter is invalid.
DPNERR_UNINITIALIZEDThe requested object has not been initialized.

Remarks

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



© 2003 Microsoft Corporation. All rights reserved.