How can I programmatically stop a notebook battery from charging

Posted by Marcel on Stack Overflow See other posts from Stack Overflow or by Marcel
Published on 2009-07-07T11:20:01Z Indexed on 2010/04/12 6:33 UTC
Read the original article Hit count: 297

Filed under:
|
|

There is some easily available information on finding the status of a battery, or weather it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).

I want to be able to stop a battery from charging based on some criteria, e.g. battery power > 20%.

Is there an API to do this?

© Stack Overflow or respective owner

Related posts about battery

Related posts about winapi