Lines Matching defs:powerStatus
127 SYSTEM_POWER_STATUS powerStatus;
128 if (GetSystemPowerStatus(&powerStatus))
131 if ( powerStatus.ACLineStatus == 0 /* Offline */
132 || powerStatus.ACLineStatus == 255 /* Unknown */
133 && (powerStatus.BatteryFlag & 15) /* high | low | critical | charging */
139 else if (powerStatus.ACLineStatus == 1)
245 SYSTEM_POWER_STATUS powerStatus;
246 if (GetSystemPowerStatus(&powerStatus))
249 *pfPresent = !(powerStatus.BatteryFlag & 128);
251 *penmRemainingCapacity = (PDMACPIBATCAPACITY)powerStatus.BatteryLifePercent;
255 if (powerStatus.BatteryFlag & 8)
257 else if (powerStatus.ACLineStatus == 0 || powerStatus.ACLineStatus == 255)
259 if (powerStatus.BatteryFlag & 4)