AR_STATE enumeration (winuser.h)

Indicates the state of screen auto-rotation for the system. For example, whether auto-rotation is supported, and whether it is enabled by the user. This enum is a bitwise OR of one or more of the following values.

Syntax

typedef enum tagAR_STATE {
  AR_ENABLED = 0x0,
  AR_DISABLED = 0x1,
  AR_SUPPRESSED = 0x2,
  AR_REMOTESESSION = 0x4,
  AR_MULTIMON = 0x8,
  AR_NOSENSOR = 0x10,
  AR_NOT_SUPPORTED = 0x20,
  AR_DOCKED = 0x40,
  AR_LAPTOP = 0x80
} AR_STATE, *PAR_STATE;

Constants

 
AR_ENABLED
Value: 0x0
Auto-rotation is enabled by the user.
AR_DISABLED
Value: 0x1
Auto-rotation is disabled by the user.
AR_SUPPRESSED
Value: 0x2
Auto-rotation is currently suppressed by one or more process auto-rotation preferences.
AR_REMOTESESSION
Value: 0x4
The session is remote, and auto-rotation is temporarily disabled as a result.
AR_MULTIMON
Value: 0x8
The system has multiple monitors attached, and auto-rotation is temporarily disabled as a result.
AR_NOSENSOR
Value: 0x10
The system does not have an auto-rotation sensor.
AR_NOT_SUPPORTED
Value: 0x20
Auto-rotation is not supported with the current system configuration.
AR_DOCKED
Value: 0x40
The device is docked, and auto-rotation is temporarily disabled as a result.
AR_LAPTOP
Value: 0x80
The device is in laptop mode, and auto-rotation is temporarily disabled as a result.

Requirements

Requirement Value
Header winuser.h