Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine power usage programmatically in Windows?

Are there any OS capabilities in Windows to know your system's current power usage programmatically? (Ideal solution could be via WMI interface.)

like image 346
ahmd0 Avatar asked Mar 14 '12 22:03

ahmd0


1 Answers

Starting with Windows 7 you can use the Win32_PowerMeter WMI class located in the root\CIMV2\power namespace, this namespace has lot of another classes and events related to the power management and profiles.

like image 184
RRUZ Avatar answered Sep 30 '22 17:09

RRUZ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!