DirectX SDK

DirectPlay4.GetPlayerCaps

The DirectPlay4.GetPlayerCaps method retrieves the current capabilities of a specified player.

object.GetPlayerCaps(playerId As Long, _ 
    caps As DPCAPS, _ 
    flags As CONST_DPGETCAPSFLAGS) 

Parameters

object
Object expression that resolves to a DirectPlay4 object.
playerId
ID of the players whose capabilities are to be retrieved.
caps
DPCAPS type that will be filled with the capabilities.
flags
Value indicating how capabilities will be computed. If set to 0, capabilities will be computed for nonguaranteed messaging. If set to DPGETCAPS_GUARANTEED, this method retrieves 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_INVALIDPLAYER

See Also

DirectPlay4.GetCaps, DirectPlay4.Send