Expand Minimize

D3DKMTGetDisplayModeList function

The D3DKMTGetDisplayModeList function retrieves a list of available display modes, including modes with extended format.

Syntax


NTSTATUS D3DKMTGetDisplayModeList(
  _Inout_  D3DKMT_GETDISPLAYMODELIST *pData
);

Parameters

pData [in, out]

A pointer to a D3DKMT_GETDISPLAYMODELIST structure that describes a list of available display modes.

Return value

D3DKMTGetDisplayModeList returns one of the following values:

Return codeDescription
STATUS_SUCCESS

The list of available display modes was successfully retrieved.

STATUS_DEVICE_REMOVED

The graphics adapter was stopped.

STATUS_BUFFER_TOO_SMALL

The buffer that the OpenGL ICD supplied in the pModeList member of D3DKMT_GETDISPLAYMODELIST that the pData parameter points to is not large enough to contain the requested display mode list.

STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET

No video present target is available for use with the video present source that is identified by the VidPnSourceId member of D3DKMT_GETDISPLAYMODELIST that the pData parameter points to. Therefore, no display modes are available for this source.

STATUS_INVALID_PARAMETER

Parameters were validated and determined to be incorrect.

 

This function might also return other NTSTATUS values.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmthk.h (include D3dkmthk.h)

Library

Gdi32.lib

See also

D3DKMT_GETDISPLAYMODELIST

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft