title: How can I programmatically stop a notebook battery from charging?
body: <p>There is some easily available information on finding the status of a battery, or whether it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).</p>
  <p>I want to be able to stop a battery from charging based on some criteria, e.g. battery power &gt; 20%.</p>
  <p>Is there an API to do this?</p>