What API does POWERCFG use for -requests and -lastwake information? RRS feed

  • Question

  • To diagnose issues more effectively, I'd like to use whatever API or APIs powercfg uses, instead of having to fire it up as a process and then parse stdout.  This would including tracking things like /requests and /lastwake, although I expect I'll ultimately dig a bit deeper than that.

    Responses to both suggest strongly that Powercfg is looking at structures containing the information.  I'd like to be able to make the same calls that Powercfg uses to retrieve them.

    Can anyone point me to any documentation of the API(s) used by powercfg?


    Monday, November 9, 2015 12:04 PM