How to get the screen auto-rotate\'s status (disable or enable) by Regetry or ACPI in windows8?
I need to disable screen auto-rotate, and I will use winkey + O to c
This MSDN example appears to do the job, using what looks like an 'official' API call, SetDisplayAutoRotationPreferences
, which is in User32.dll (not kernel.dll as the example states) and is defined in WinUser.h.
The advantage of this example over the other suggestions is that it first checks whether auto-rotation is supported and enabled first.