IDirect3D9Ex::EnumAdapterModesEx method (d3d9.h)

This method returns the actual display mode info based on the given mode index.

Syntax

HRESULT EnumAdapterModesEx(
  [in]          UINT                       Adapter,
  [in]          const D3DDISPLAYMODEFILTER *pFilter,
  [in]          UINT                       Mode,
  [out, retval] D3DDISPLAYMODEEX           *pMode
);

Parameters

[in] Adapter

Type: UINT

Ordinal number denoting the display adapter to enumerate. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns D3DERR_INVALIDCALL when this value equals or exceeds the number of display adapters in the system.

[in] pFilter

Type: const D3DDISPLAYMODEFILTER*

See D3DDISPLAYMODEFILTER.

[in] Mode

Type: UINT

Represents the display-mode index which is an unsigned integer between zero and the value returned by GetAdapterModeCount minus one.

[out, retval] pMode

Type: D3DDISPLAYMODEEX*

A pointer to the available display mode of type D3DDISPLAYMODEEX.

Return value

Type: HRESULT

  • If the device can be used on this adapter, D3D_OK is returned.
  • If the Adapter equals or exceeds the number of display adapters in the system, D3DERR_INVALIDCALL is returned.

Requirements

Requirement Value
Target Platform Windows
Header d3d9.h
Library D3D9.lib

See also

IDirect3D9Ex