|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| No
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| winbase.h
| Unicode
| No
| Platform Notes
| None
|
|
|
SYSTEM_POWER_STATUS
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;
Members
ACLineStatus
AC power status. This parameter can be one of the following values:
Value
| Meaning
| 0
| Offline
| -
| Online
| 255
| Unknown status.
|
All other values are reserved.
BatteryFlag
Battery charge status. This parameter can be a combination of the following
values:
Value
| Meaning
| -
| High
| -
| Low
| 4
| Critical
| 8
| Charging
| 128
| No system battery
| 255
| Unknown status
|
All other values are reserved.
BatteryLifePercent
Percentage of full battery charge remaining. This member can be a value in the
range 0 to 100, or 255 if status is unknown. All other values are reserved.
Reserved1
Reserved; must be zero.
BatteryLifeTime
Number of seconds of battery life remaining, or 0xFFFFFFFF if remaining
seconds are unknown.
BatteryFullLifeTime
Number of seconds of battery life when at full charge, or 0xFFFFFFFF if full
lifetime is unknown.
Remarks
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.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|