示例#1
0
 public string GetSystemBatteryState()
 {
     return(JsonConvert.SerializeObject(CallNtPowerInformationHandler.GetPowerInformation <CallNtPowerInformationHandler.SYSTEM_BATTERY_STATE>(CallNtPowerInformationHandler.PowerInformationLevel.SystemBatteryState)));
 }
示例#2
0
 public string GetSystemPowerInformation()
 {
     return(JsonConvert.SerializeObject(CallNtPowerInformationHandler.GetPowerInformation <CallNtPowerInformationHandler.SYSTEM_POWER_INFORMATION>(CallNtPowerInformationHandler.PowerInformationLevel.SystemPowerInformation)));
 }
示例#3
0
 public long GetLastWakeTime()
 {
     return(CallNtPowerInformationHandler.GetPowerInformation <long>(CallNtPowerInformationHandler.PowerInformationLevel.LastWakeTime));
 }