G
Gary''s Student
I am building an Excel alarm clock for a laptop. I am updating the display
with an OnTime event. One of the requirements is to autonomously detect if
the laptop switches from A/C power to its internal battery.
Has anyone come across an API that will return the power state? Say TRUE if
A/C, FALSE if battery?
Thanks for any leads.
with an OnTime event. One of the requirements is to autonomously detect if
the laptop switches from A/C power to its internal battery.
Has anyone come across an API that will return the power state? Say TRUE if
A/C, FALSE if battery?
Thanks for any leads.