Nathan Webers wrote:
For now, I am going to resort to calls to powercfg.exe whose function is documented here:
[https://msdn.microsoft.com/en-us/library/windows/hardware/mt644885(v=vs.85).aspx]
We have the ability to call on that function as an administrator. I am simply going to import a power plan scheme (using "/import") and then trigger the new power plan to be active (using "/setactive").
It would be nice if there were a way to do all of this programmatically though.
You might get better responses posting in the appropriate group. This one is to
discuss the CodeCentral app on the EDN website. /you probably want to ask this
in embarcadero.public.delphi.platform.win32 or win64.
--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Connect with Us