Expand Minimize

GetAutoRotationState function

Retrieves the state of screen auto-rotation for the system. For example, whether auto-rotation is supported, and whether it is enabled by the user.

Syntax


BOOL WINAPI GetDisplayAutoRotationPreferences(
  _Out_  PAR_STATE pState
);

Parameters

pState [out]

Pointer to a location in memory that will receive the current state of auto-rotation for the system.

Return value

TRUE if the method succeeds, otherwise FALSE.

See GetDisplayAutoRotationPreferences for an example of using this function.

Requirements

Header

WinUser.h

DLL

Kernel.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft