mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[KERNEL32] GetSystemPowerStatus(): Set the BATTERY_FLAG_CRITICAL flag if the battery life gets lower than 5 percent.
This commit is contained in:
@@ -61,6 +61,9 @@ GetSystemPowerStatus(IN LPSYSTEM_POWER_STATUS PowerStatus)
|
||||
PowerStatus->BatteryLifePercent = 100;
|
||||
}
|
||||
|
||||
if (PowerStatus->BatteryLifePercent <= 4)
|
||||
PowerStatus->BatteryFlag |= BATTERY_FLAG_CRITICAL;
|
||||
|
||||
if (PowerStatus->BatteryLifePercent <= 32)
|
||||
PowerStatus->BatteryFlag |= BATTERY_FLAG_LOW;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user