Is there a C#/C++ way to programmatically modify Rotation Lock settings without restarting the device?

  • Thread starter Thread starter Tam Bui - Dev
  • Start date Start date
T

Tam Bui - Dev

Guest
I have a Surface Pro, and I know that I can manually turn the Rotation Lock on/off from the Display Settings of the device, or adjust the settings from the Windows Registry manually or programmatically:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AutoRotation

However, if I edit the Windows Registry programmatically, it doesn't take effect until I reboot the system.

Is there an underlying Win32 API that allows the adjustment of these settings programmatically and take effect immediately?

Any help would be greatly appreciated.

Continue reading...
 
Back
Top