Partager via


IDirect3DMobile::GetDeviceCaps

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method is used to retrieve a D3DMCAPS structure containing capability bits supported by the specified device.

Syntax

HRESULT GetDeviceCaps(
  UINT Adapter,
  D3DMDEVTYPE DeviceType,
  D3DMCAPS* pCaps
);

Parameters

  • Adapter
    [in] A value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.
  • DeviceType
    [in] A D3DMDEVTYPE enumeration value that specifies the type of device.
  • pCaps
    [out] A pointer to a D3DMCAPS structure describing the capability bits supported by the specified device.

Return Value

If successful, this method returns D3DM_OK.

This method may return one of the following error values if it fails:

  • D3DMERR_INVALIDCALL
  • D3DMERR_INVALIDDEVICE
  • D3DMERR_DRIVERINVALIDCALL

For more information, see D3DMERR Values.

Requirements

Header d3dm.h
Library D3dm.lib, D3dmguid.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IDirect3DMobile
D3DMADAPTER Values
D3DMDEVTYPE
D3DMCAPS