SetDisplayAutoRotationPreferences function (winuser.h)

Sets the screen auto-rotation preferences for the current process.

Syntax

BOOL SetDisplayAutoRotationPreferences(
  [in] ORIENTATION_PREFERENCE orientation
);

Parameters

[in] orientation

Pointer to a location in memory with the screen orientation preferences to set for the calling process.

Return value

TRUE if the method succeeds, otherwise FALSE.

See GetDisplayAutoRotationPreferences for an example of using this function.

Requirements

Requirement Value
Target Platform Windows
Header winuser.h
DLL Kernel.dll