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.
Any suggestion or comments are appreciated.