.net PowrProf.dll GetPwrCapabilities?
Jun 30, 2009
I have a problem in vb .net 2005 with the function GetPwrCapabilities in PowrProf.dll. It doesn't return any errors but the result in the systemPowerCapabilities seems to always be the same.
[Code]...
View 2 Replies
Apr 1, 2011
I am trying to find the time-outs the user has set for the PC similar in function to the command line:
powercfg /q SCHEME_CURRENT SUB_SLEEP but I want to do something a bit more elegant than firing off a command and parsing the values out of the captured output. I've managed to source a number of element examples from the net and cobble parts together into a program.
I've got a fair way but am now stuck on the call to powrprof.dll - PowerEnumerate function. I've checked it on Microsoft's site and my call seems to be okay yet it still fails with 'System.AccessViolationException was unhandled'
[Code]...
View 3 Replies