Windows Dev Center

IDirect3D9::GetAdapterModeCount method

Returns the number of display modes available on this adapter.

Syntax


UINT GetAdapterModeCount(
  [in] UINT      Adapter,
  [in] D3DFORMAT Format
);

Parameters

Adapter [in]

Type: UINT

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

Format [in]

Type: D3DFORMAT

Identifies the format of the surface type using D3DFORMAT. Use EnumAdapterModes to see the valid formats.

Return value

Type: UINT

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

D3D9.h

Library

D3D9.lib

See also

IDirect3D9
EnumAdapterModes

 

 

Community Additions

ADD
Show:
© 2015 Microsoft