IDirect3D9::GetAdapterModeCount

Returns the number of display modes available on this adapter.

UINT GetAdapterModeCount(
  UINT Adapter,
  D3DFORMAT Format
);

Parameters

Adapter
[in] Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.
Format
[in] Identifies the format of the surface type using D3DFORMAT. Use IDirect3D9::EnumAdapterModes to see the valid formats.

Return Values

This method returns the number of display modes on this adapter or zero if Adapter is greater than or equal to the number of adapters on the system.

Requirements

Header: Declared in D3d9.h.

See Also

IDirect3D9::EnumAdapterModes