Moves the windows API stuff for power to a separate module. I've also added enums for the AC and battery.
Needs testing as I don't have a Windows laptop set up. Of particular concern is if it's possible for the battery flag to be greater than 128 (NONE) even when the battery is removed e.g. a flag for HIGH along with NONE doesn't seem like too far of a stretch.
Moves the windows API stuff for power to a separate module. I've also added enums for the AC and battery.
Needs testing as I don't have a Windows laptop set up. Of particular concern is if it's possible for the battery flag to be greater than 128 (NONE) even when the battery is removed e.g. a flag for HIGH along with NONE doesn't seem like too far of a stretch.