IDirect3D9::GetDeviceCaps

This is a member of IDirect3D9 that retrieves device-specific information about a device.

Syntax
HRESULT GetDeviceCaps( UINT Adapter,  D3DDEVTYPE DeviceType,  D3DCAPS9 * pCaps );

Parameters
 Adapter -  Ordinal number that identifies the adapter. It will most likely be D3DADAPTER_DEFAULT.

 DeviceType -  A member of D3DDEVTYPE that represents the device type.

 pCaps -  A pointer to a D3DCAPS9 structure that will be filled with the device capibilities.

Return Values
If it succeeds, it will return D3D_OK. If it fails, it may produce one of the following: D3DERR_INVALIDCALL, D3DERR_INVALIDDEVICE, D3DERR_OUTOFVIDEOMEMORY, and D3DERR_NOTAVAILABLE.

Requirements
 Header -  d3d9.h

 Library -  d3d9.lib