Vivek Bhojan Posted January 2, 2012 Report Share Posted January 2, 2012 There is a function "Get System Power Status" under Kernel32.dll, which gives only the system Power Status like On/Off, AC/DC type etc. Can anyone please help me in finding the System Battery Voltage and Current? Quote Link to comment
Wouter Posted January 2, 2012 Report Share Posted January 2, 2012 (edited) Do you really need the voltage level? Or do you only need a indicator for the how much % of the battery level remains. If the latter you can just use the "GetSystemPowerStatus" function, it also returns the % level of the battery. If not you can use PowerReadACValue; msdn.microsoft.com/en-us/library/windows/desktop/aa372734(v=VS.85).aspx or PowerReadDCValue; msdn.microsoft.com/en-us/library/windows/desktop/aa372737(v=VS.85).aspx for all power management functions you can look here: msdn.microsoft.com/en-us/library/windows/desktop/aa373163(v=VS.85).aspx Edited January 2, 2012 by Wouter Quote Link to comment
ShaunR Posted January 2, 2012 Report Share Posted January 2, 2012 http://lavag.org/topic/14001-get-system-power-state/ 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.