phenX
Messages postés704Date d'inscriptionmercredi 4 mai 2005StatutMembreDernière intervention28 août 2012
-
20 janv. 2006 à 09:44
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 2021
-
20 janv. 2006 à 09:54
bonjour,
je voudrais savoir a quoi correspond:
ACLineStatus As Byte
BatteryFlag As Byte
BatteryLifePercent As Byte
Reserved1 As Byte
BatteryLifeTime As Long
BatteryFullLifeTime As Long
ACLineStatus
AC power status. This member can be one of the following values.
Value Meaning
0 Offline
1 Online
255 Unknown status
BatteryFlag
Battery charge status. This member can contain one or more of the following flags.
Value Meaning
1 High?the battery capacity is at more than 66 percent
2 Low?the battery capacity is at less than 33 percent
4 Critical?the battery capacity is at less than five percent
8 Charging
128 No system battery
255 Unknown status'unable to read the battery flag information
The value is zero if the battery is not being charged and the battery capacity is between low and high.
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.
Reserved1
Reserved; must be zero.
BatteryLifeTime
Number of seconds of battery life remaining, or ?1 if remaining seconds are unknown.
BatteryFullLifeTime
Number of seconds of battery life when at full charge, or ?1 if full battery lifetime is unknown.
Remarks
The system is only capable of estimating BatteryFullLifeTime based on calculations on BatteryLifeTime and BatteryLifePercent. Without smart battery subsystems, this value may not be accurate enough to be useful.