Answered by:
Is there any API to disabe AutoRotation?

Question
-
Hi guys,
I need turn off Auto rotation in Win8 tablet. We found that the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AutoRotation is used to indicate whether auto rotate is enabled. I want to know if there exist any APIs to change the key value? Thanks,
Monday, November 19, 2012 4:55 AM
Answers
-
Hi,
In Windows Store app you can set this DisplayProperties.AutoRotationPreferences | autoRotationPreferences property
http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.display.displayproperties.autorotationpreferences.aspxFor more information, please check Device auto rotation preferences sample
http://code.msdn.microsoft.com/windowsapps/Auto-Rotation-Preferences-87ae2902/Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Guoqiang Su Friday, November 23, 2012 3:09 AM
Tuesday, November 20, 2012 5:53 AM
All replies
-
Hi,
In Windows Store app you can set this DisplayProperties.AutoRotationPreferences | autoRotationPreferences property
http://msdn.microsoft.com/en-us/library/windows/apps/windows.graphics.display.displayproperties.autorotationpreferences.aspxFor more information, please check Device auto rotation preferences sample
http://code.msdn.microsoft.com/windowsapps/Auto-Rotation-Preferences-87ae2902/Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Guoqiang Su Friday, November 23, 2012 3:09 AM
Tuesday, November 20, 2012 5:53 AM -
Thank for your help! Sorry for slow responseFriday, November 23, 2012 3:09 AM
-
Hi,
Does this permanently disable auto-rotate? For example can the user still press "Win+O" key combo, or press the rotate toggle button on the hardware?
I would like to disable auto-rotate, as long as my software is installed on the system.
Thanks
Chris
Thursday, January 3, 2013 1:54 PM -
hi,Guoqiang ! Do you found the API?
Guo
Tuesday, March 18, 2014 9:20 AM