UWP application gets Power settings
I have UWP application and I want to retrieve the Power and Sleep setting information and display it to the UI.
For example: On Windows settings, I set the Sleep timer to Never
Then when I open my UWP application and go to Power setting UI, it will reflect the selected settings in the dropdown list.
My question now is, Is it possible to control (Read, Update) the Power and Sleep setting in Windows 10 thru C# programming. If yes, Any Tips on how to Achieve this feature in my App that I can Change and Display the Sleep settings to the application UI.
Can you explain a bit more of your scenario why your app would need read / write access to this setting? Having an application changing global settings without user consent is pretty powerful.