IDirectPlay2::GetCaps

HRESULT GetCaps(LPDPCAPS lpDPCaps,

DWORD dwFlags);

Obtains the capabilities of this DirectPlay object.

·Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_INVALIDOBJECT

DPERR_INVALIDPARAMS

lpDPCaps

Address of a DPCAPS structure that will be filled with the capabilities of the DirectPlay object. The dwSize member of the DPCAPS structure must be filled in before using IDirectPlay2::GetCaps.

dwFlags

If this parameter is set to 0, the capabilities will be computed for nonguaranteed messaging.

DPGETCAPS_GUARANTEED

Retrieves the capabilities for a guaranteed message delivery.

This method returns the capabilities of the current session, while the IDirectPlay2::GetPlayerCaps method returns the capabilities of the requested player.