| DirectX SDK | 
The D3DXGetMaxNumVideoModes function returns the maximum number of video modes.
DWORD D3DXGetMaxNumVideoModes( DWORD deviceIndex, DWORD flags );
If the function succeeds, the return value is the maximum number of video modes.
If the function fails, zero is returned.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxcore.h.
  Library: Use d3dx.lib.