How to retrieve information about the system power capabilities in Windows

The sample code uses the API GetPwrCapabilities() with structure SYSTEM_POWER_CAPABILITIES to get the power related values on the machine. Once successful, the values are available in the structure variable of SYSTEM_POWER_CAPABILITIES and displayed.

C++ (30.6 KB)
 
 
 
 
 
(0)
328 times
Add to favorites
9/22/2016
E-mail Twitter del.icio.us Digg Facebook