Lvl4Sword / Killer

🔪 System tamper detector for USB, Bluetooth, AC, Battery, Disk Tray, and Ethernet.
https://pypi.org/project/killer/
GNU Affero General Public License v3.0
71 stars 11 forks source link

Refactor Windows Power #20

Closed MarkKoz closed 5 years ago

MarkKoz commented 5 years ago

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.