如何以编程方式停止笔记本电池充电 [英] How can I programmatically stop a notebook battery from charging
问题描述
有一些关于查找电池状态或天气是否正在充电的容易获得的信息.(GetSystemPowerStatus API 或 System.Windows.Forms.SystemInformation.PowerStatus).
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).
我希望能够根据某些条件停止电池充电,例如电池电量 > 20%.
I want to be able to stop a battery from charging based on some criteria, e.g. battery power > 20%.
是否有 API 可以执行此操作?
Is there an API to do this?
推荐答案
我认为这是不可能的,因为您需要一些用于电池或电池充电器的 API.
I think it's impossible, because you have need some API for battery or battery charger.
并且此 API 可以为您的笔记本电脑和电池或电池充电器制造商提供支持.
And this API can provide to you manufacturer of notebook and battery or battery charger support this.
这篇关于如何以编程方式停止笔记本电池充电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!