GetDisplayAutoRotationPreferences function

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

Syntax

BOOL GetDisplayAutoRotationPreferences(
  ORIENTATION_PREFERENCE *pOrientation
);

Parameters

pOrientation

Pointer to a location in memory that will receive the current orientation preference setting for the calling process.

Return Value

TRUE if the method succeeds, otherwise FALSE.

Requirements

   
Target Platform Windows
Header winuser.h
DLL Kernel.dll