DirectX SDK |
The DirectPlay4.GetCaps method obtains the capabilities of the current DirectPlay connection and session.
object.GetCaps(caps As DPCAPS, _ flags As CONST_DPGETCAPSFLAGS)
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 |
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.