AR_STATE enumeration
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 _AR_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
-
Auto-rotation is enabled by the user.
- AR_DISABLED
-
Auto-rotation is disabled by the user.
- AR_SUPPRESSED
-
Auto-rotation is currently suppressed by one or more process auto-rotation preferences.
- AR_REMOTESESSION
-
The session is remote, and auto-rotation is temporarily disabled as a result.
- AR_MULTIMON
-
The system has multiple monitors attached, and auto-rotation is temporarily disabled as a result.
- AR_NOSENSOR
-
The system does not have an auto-rotation sensor.
- AR_NOT_SUPPORTED
-
Auto-rotation is not supported with the current system configuration.
- AR_DOCKED
-
The device is docked, and auto-rotation is temporarily disabled as a result.
- AR_LAPTOP
-
The device is in laptop mode, and auto-rotation is temporarily disabled as a result.
See GetDisplayAutoRotationPreferences for an example of using this enumeration.
Requirements
|
Header |
|
|---|