Code: Select all
[MeasureBatteryStatus]
Measure=Plugin
Plugin=PowerPlugin.dll
PowerState=STATUS2
UpdateDivider=5
according to Microsoft it should be 8. http://msdn.microsoft.com/en-us/library/aa373232(VS.85).aspx
Code: Select all
[MeasureBatteryStatus]
Measure=Plugin
Plugin=PowerPlugin.dll
PowerState=STATUS2
UpdateDivider=5
The key part is "one or more of the following flags", which means that its value can be equal to a flag (e.g. 1 for High) or a combination of flags using the bitwise OR operation (e.g. 9 for High and Charging). To test for flags, you should use the bitwise AND operation with Calcs.BatteryFlag
The battery charge status. This member can contain one or more of the following flags.