DISPLAYCONFIG_ROTATION enumeration (wingdi.h)

The DISPLAYCONFIG_ROTATION enumeration specifies the clockwise rotation of the display.

Syntax

typedef enum {
  DISPLAYCONFIG_ROTATION_IDENTITY = 1,
  DISPLAYCONFIG_ROTATION_ROTATE90 = 2,
  DISPLAYCONFIG_ROTATION_ROTATE180 = 3,
  DISPLAYCONFIG_ROTATION_ROTATE270 = 4,
  DISPLAYCONFIG_ROTATION_FORCE_UINT32 = 0xFFFFFFFF
} DISPLAYCONFIG_ROTATION;

Constants

 
DISPLAYCONFIG_ROTATION_IDENTITY
Value: 1
Indicates that rotation is 0 degrees—landscape mode.
DISPLAYCONFIG_ROTATION_ROTATE90
Value: 2
Indicates that rotation is 90 degrees clockwise—portrait mode.
DISPLAYCONFIG_ROTATION_ROTATE180
Value: 3
Indicates that rotation is 180 degrees clockwise—inverted landscape mode.
DISPLAYCONFIG_ROTATION_ROTATE270
Value: 4
Indicates that rotation is 270 degrees clockwise—inverted portrait mode.
DISPLAYCONFIG_ROTATION_FORCE_UINT32
Value: 0xFFFFFFFF
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. You should not use this value.

Requirements

Requirement Value
Minimum supported client Available in Windows 7 Client.
Header wingdi.h (include Windows.h)