IDirect3D9::GetAdapterDisplayMode

A member of IDirect3D9 that retrieves the current display mode of the adapter.

Syntax
HRESULT GetAdapterDisplayMode( UINT Adapter,  D3DDISPLAYMODE * pMode );

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

 pMode -  A pointer to a D3DDISPLAYMODE structure that will be filled with the adapter mode info.

Return Values
If it succeeds, it will return D3D_OK. If some of the parameters are incorrect, it will return D3DERR_INVALIDCALL.

Requirements
 Header -  d3d9.h

 Library - ' d3d9.lib