d3d9.dllGetAdapterModeCount
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3D9::GetAdapterModeCount Method


Returns the number of display modes available on this adapter.

Syntax

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 Value

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.

See Also

IDirect3D9::EnumAdapterModes


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.