Microsoft DirectX 8.1 (C++)

IDirectPlay8Client::GetCaps

Retrieves the DPN_CAPS structure for the current interface.

HRESULT GetCaps(
DPN_CAPS *const pdpCaps,
const DWORD dwFlags
);

Parameters

pdpnCaps
[out] Pointer to a DPN_CAPS structure to receive caps information. 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

A successful call to Initialize must be made before this method can be called.

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.