SetDisplayAutoRotationPreferences function

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

Syntax

BOOL SetDisplayAutoRotationPreferences(
  ORIENTATION_PREFERENCE orientation
);

Parameters

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

   
Target Platform Windows
Header winuser.h
DLL Kernel.dll