DirectX SDK

DirectPlay4.GetCaps

The DirectPlay4.GetCaps method obtains the capabilities of the current DirectPlay connection and session.

object.GetCaps(caps As DPCAPS, _
    flags As CONST_DPGETCAPSFLAGS) 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
caps
DPCAPS type that will be filled with the capabilities of the DirectPlay object.
flags
One of the members of the CONST_DPGETCAPSFLAGS enumeration. If this parameter is set to DPGETCAPS_DEFAULT (or 0), the capabilities will be computed for nonguaranteed messaging. Setting DPGETCAPS_GUARANTEED retrieves the capabilities for a guaranteed message delivery.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS
DPERR_UNINITIALIZED

Remarks

The connection must be initialized before this method is called. If there is no open session, some members of DPCAPS will not return meaningful values.

See Also

DirectPlay4.GetPlayerCaps, DirectPlay4.InitializeConnection