How can I programmatically stop a notebook battery from charging

前端 未结 10 1258
深忆病人
深忆病人 2021-02-14 19:34

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.SystemInformat

10条回答
  •  自闭症患者
    2021-02-14 19:40

    I honestly don't know, but I'd have a look at the APM or ACPI APIs.

    Other than that, the only option I can think of right now is a USB controlled robotic arm that ejects the battery when you need to stop charging, but that's probably not what you are looking for, and borders on the complicator's glove in terms of level of over-engineering. :)

提交回复
热议问题