How can I programmatically stop a notebook battery from charging

Marcel picture Marcel · Jul 7, 2009 · Viewed 23.6k times · Source

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?

Answer

MicTech picture MicTech · Jul 7, 2009

I think it's impossible, because you have need some API for battery or battery charger.

And this API can provide to you manufacturer of notebook and battery or battery charger support this.