Index Topic Contents | |||
Previous Topic: IDirectPlay3::EnumSessions Next Topic: IDirectPlay3::GetGroupConnectionSettings |
IDirectPlay3::GetCaps
IDirectPlay3 InterfaceObtains the capabilities of this DirectPlay object.
HRESULT GetCaps(
LPDPCAPS lpDPCaps,
DWORD dwFlags
);Parameters
- lpDPCaps
- Pointer to 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 IDirectPlay3::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.
Return Values
Returns DP_OK if successful, or one of the following error values otherwise:
- DPERR_INVALIDOBJECT
- DPERR_INVALIDPARAMS
Remarks
This method returns the capabilities of the current session, while the IDirectPlay3::GetPlayerCaps method returns the capabilities of the requested player.
See Also
DPCAPS, IDirectPlay3::GetPlayerCaps, IDirectPlay3::Send
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.