EnumAdapterModesEx
Collapse the table of content
Expand the table of content

IDirect3D9Ex::EnumAdapterModesEx method

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

Adapter [in]

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.

pFilter [in]

Type: const D3DDISPLAYMODEFILTER*

See D3DDISPLAYMODEFILTER.

Mode [in]

Type: UINT

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

pMode [out, retval]

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

Header

D3d9.h

Library

D3D9.lib

See also

IDirect3D9Ex

 

 

Show:
© 2016 Microsoft