The SYSTEM_POWER_STATUS structure contains information about the power status of the system.
typedef struct _SYSTEM_POWER_STATUS {
BYTE ACLineStatus;
BYTE BatteryFlag;
BYTE BatteryLifePercent;
BYTE Reserved1;
DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS;
typedef struct SYSTEM_POWER_STATUS *LPSYSTEM_POWER_STATUS;
Value |
Meaning |
0 |
Offline |
1 |
Online |
255 |
Unknown status. |
All other values are reserved.
Value |
Meaning |
1 |
High |
2 |
Low |
4 |
Critical |
8 |
Charging |
128 |
No system battery |
255 |
Unknown status |
All other values are reserved.
Windows 95 is only capable of estimating BatteryFullTime based on calculations on BatteryLifeTime and BatteryLifePercent. Without smart battery subsystems, this value may not be accurate enough to be useful.
file: /Techref/os/win/api/win32/struc/src/str20_46.htm, 3KB, , updated: 2000/4/7 11:20, local time: 2024/11/29 23:44,
18.118.193.223:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/Techref/os/win/api/win32/struc/src/str20_46.htm"> SYSTEM_POWER_STATUS</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.