IDirect3D9::CheckDeviceType

A member of IDirect3D9 that verifies whether a hardware accelerated device type can be used on this adapter.

Syntax
HRESULT CheckDeviceType( UINT Adapter,  D3DDEVTYPE DeviceType,  D3DFORMAT DisplayFormat,  D3DFORMAT BackBufferFormat,  BOOL Windowed );

Parameters
 Adapter -  Ordinal number that identifies the Adapter to check. Most likely will be D3DADAPTER_DEFAULT.

 DeviceType -  A member of D3DDEVTYPE that identifies the device type to check.

 DisplayFormat -  A member of D3DDEVTYPE that identifies the format the display adapter should use during the check.

 BackBufferFormat -  The back buffer format, must be a member of D3DFORMAT. Can use IDirect3D9::GetDisplayMode to get the current format.

 Windowed -  True for windowed, false for fullscreen.

Return Values
If it succeeded, it will return D3D_OK. It will return D3DERR_INVALIDCALL if one of the parameters are invalid. If the selected hardware accelerated device type is not usable, it will return D3DERR_NOTAVAILABLE.

Requirements
 Header -  d3d9.h

Library - ' d3d9.lib