Platform SDK: DirectX |
The IDirectPlay4::GetCaps method obtains the capabilities of this DirectPlay object.
HRESULT GetCaps( LPDPCAPS lpDPCaps, DWORD dwFlags );
Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_INVALIDOBJECT |
DPERR_INVALIDPARAMS |
This method returns the capabilities of the current session, while the IDirectPlay4::GetPlayerCaps method returns the capabilities of the requested player.
Note that capabilities indicating which aspects of SendEx are supported are not available until after the session has been opened. If the application hosting the session has specified the DPSESSION_DIRECTPLAYPROTOCOL flag in the DPSESSIONDESC2 structure, then all the SendEx options are supported.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplay.h.
Import Library: Use dplayx.lib.