I'm writing a small program to save my laptop's battery, and I can now switch between power schemes using PowerSetActiveScheme
.
The next step is to control the battery saver in Windows 10. Though I can read the state of it using GetSystemPowerStatus
, I can't find a way to enable/disable it programmatically. Are there any functions in Windows API to do this?