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