Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method is used to determine if a specified device supports a specified profile.

Syntax

HRESULT CheckProfile(
  UINT 
Adapter,
  D3DMDEVTYPE 
DeviceType,
  D3DMPROFILE 
Profile
);

Parameters

Adapter

[in] A value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.

DeviceType

[in] A D3DMDEVTYPEenumeration value that specifies the type of device.

Profile

[in] A D3DMPROFILEenumeration value that specifies the type of profile to check support on the device for.

Return Value

This method returns D3DM_OK if the specified profile is supported and D3DMERR_NOTAVAILABLE if it is not supported.

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

  • D3DMERR_INVALIDCALL

  • D3DMERR_INVALIDDEVICE

  • E_OUTOFMEMORY

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