Retrieves the current display mode of the adapter.
HRESULT GetAdapterDisplayMode( UINT Adapter, D3DDISPLAYMODE * pMode );
If Adapter is out of range or pMode is invalid, this method returns D3DERR_INVALIDCALL.
IDirect3D9::GetAdapterDisplayMode will not return the correct format when the display is in an extended format, such as 2:10:10:10. Instead, it returns the format X8R8G8B8.
Header: Declared in D3d9.h.