I am reading power information under Windows 10 using CallNtPowerInformation function. Specifically, I am reading SystemPowerInformation. Ref: http
CallNtPowerInformation
SystemPowerInformation