reactos/dll/shellext/stobject
George Bișoc 07a76b3dec
[STOBJECT] Do not report the remaining battery capacity if it is unknown
Support for system batteries in ReactOS is really minimal to the point of non-existing. We are detecting the presence of any upcoming battery but since there's lacking in critical code that deals with communication
between PO and the battery class driver as the battery systray icon uses GetSystemPowerStatus to gather battery info which in turn inquires the power manager via NtPowerInformation(SystemBatteryState), we have
to report to the user that the remaining capacity is unknown rather than returning a pseudo capacity value.

Technically this so called "pesudo" value is just a construct denoted as BATTERY_PERCENTAGE_UNKNOWN. Not reporting the actual remaining capacity makes sense, as there could be a scenario where the battery may not
properly report its real datum, therefore it's best to be honest to the user what's really going on.

CORE-19452
CORE-18969
2024-08-13 14:17:04 +02:00
..
lang [STOBJECT] Update Romanian (ro-RO) translation (#6695) 2024-04-07 20:40:38 +02:00
resources [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
CMakeLists.txt [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
csystray.cpp [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
csystray.h [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
hotplug.cpp [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
mouse.cpp [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
power.cpp [STOBJECT] Do not report the remaining battery capacity if it is unknown 2024-08-13 14:17:04 +02:00
precomp.h [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
resource.h [STOBJECT] Add support for the mouse key tray icon 2022-09-06 21:11:09 +02:00
stobject.cpp [STOBJECT] Improve the existing PCH and make use of it. 2017-12-08 23:15:31 +01:00
stobject.rc [STOBJECT] Add Japanese (ja-JP) translation 2023-11-19 20:06:50 +09:00
stobject.spec Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
volume.cpp [STOBJECT] Remove #if 0 and #endif in Volume_IsMute (#5973) 2023-11-19 21:28:37 +09:00