Hi, looking for a light-weight method of getting the current battery charge left percentage. To determine whether the computer is running of AC or DC power I use the
, however, I am struggling with the battery percentage.
I have also considered using
but would prefer a C++ solution... any ideas?
I am not entirely certain how to go about using...
kIOPSCurrentCapacityKey and kIOPSMaxCapacityKey
Code:
IOPSGetProvidingPowerSourceType
I have also considered using
Code:
pmset -g ps
I am not entirely certain how to go about using...
kIOPSCurrentCapacityKey and kIOPSMaxCapacityKey