DirectX SDK

D3DXGetMaxNumVideoModes

The D3DXGetMaxNumVideoModes function returns the maximum number of video modes.

DWORD D3DXGetMaxNumVideoModes(
  DWORD deviceIndex,
  DWORD flags
); 

Parameters

deviceIndex
An index value specifying the device. Using D3DX_DEFAULT for this parameter specifies the device with the highest acceleration level afforded on the primary surface.
flags
Refresh rates will be ignored unless the D3DX_GVM_REFRESHRATE flag is set by this parameter. If you want refresh rates to be ignored, set this parameter to 0.

Return Values

If the function succeeds, the return value is the maximum number of video modes.

If the function fails, zero is returned.

Requirements

  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.

See Also

D3DXGetCurrentVideoMode, D3DXGetVideoMode