DirectPlay Animated Header -- IDirectPlay3::GetPlayerCaps DirectPlay Animated Header -- IDirectPlay3::GetPlayerCaps* Microsoft DirectPlay SDK
*Index  *Topic Contents
*Previous Topic: IDirectPlay3::GetPlayerAddress
*Next Topic: IDirectPlay3::GetPlayerData


IDirectPlay3::GetPlayerCaps


IDirectPlay3 Interface

Retrieves the current capabilities of a specified player.

HRESULT GetPlayerCaps(
  DPID idPlayer,
  LPDPCAPS lpPlayerCaps,
  DWORD dwFlags
  );

Parameters
idPlayer
Player ID for which the capabilities should be computed.
lpPlayerCaps
Pointer to a DPCAPS structure that will be filled with the capabilities. The dwSize member of the DPCAPS structure must be filled in before using IDirectPlay3::GetPlayerCaps.
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.
Return Values

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

DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS
DPERR_INVALIDPLAYER
Remarks

This method returns the capabilities of the requested player, while the IDirectPlay3::GetCaps method returns the capabilities of the current session.

See Also

DPCAPS, IDirectPlay3::GetCaps, IDirectPlay3::Send

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page