D3DKMT_SETDISPLAYMODE structure (d3dkmthk.h)

The D3DKMT_SETDISPLAYMODE structure describes the primary allocation that is used for scanning out to the display.

Syntax

typedef struct _D3DKMT_SETDISPLAYMODE {
  [in]  D3DKMT_HANDLE                         hDevice;
  [in]  D3DKMT_HANDLE                         hPrimaryAllocation;
  [in]  D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING ScanLineOrdering;
  [in]  D3DDDI_ROTATION                       DisplayOrientation;
  [out] UINT                                  PrivateDriverFormatAttribute;
  [in]  D3DKMT_SETDISPLAYMODE_FLAGS           Flags;
} D3DKMT_SETDISPLAYMODE;

Members

[in] hDevice

A handle to the device that requests setting of the display mode.

[in] hPrimaryAllocation

A D3DKMT_HANDLE data type that represents the kernel-mode handle to the primary allocation for scanning out.

[in] ScanLineOrdering

A D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING-typed value that indicates how scan lines are ordered in the display mode.

[in] DisplayOrientation

A D3DDDI_ROTATION-typed value that identifies the orientation of the display mode.

[out] PrivateDriverFormatAttribute

A UINT value that specifies a private format attribute that the OpenGL installable client driver (ICD) should use to convert the current primary surface if a call to the D3DKMTSetDisplayMode function failed with STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT.

[in] Flags

Supported in Windows 7 and later versions.

A D3DKMT_SETDISPLAYMODE_FLAGS structure that specifies, in bit-field flags, attributes for setting the display mode.

Requirements

Requirement Value
Minimum supported client Windows Vista
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DDDI_ROTATION

D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING

D3DKMTSetDisplayMode

D3DKMT_SETDISPLAYMODE_FLAGS