IDirect3D9::GetAdapterModeCount method (d3d9helper.h)
Returns the number of display modes available on this adapter.
Syntax
UINT GetAdapterModeCount(
[in] UINT Adapter,
[in] D3DFORMAT Format
);
Parameters
[in] Adapter
Type: UINT
Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.
[in] Format
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d9helper.h (include D3D9.h) |
Library | D3D9.lib |