Changeset 167 for trunk/include/helpers/apmh.h
- Timestamp:
- Jun 2, 2002, 8:20:24 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/apmh.h
r111 r167 60 60 *---------------------------------------------------------------------------*/ 61 61 62 typedef struct _APMGIO_QSTATUS_PPKT {// Parameter Packet.63 62 typedef struct _APMGIO_QSTATUS_PPKT // Parameter Packet. 63 { 64 64 USHORT ParmLength; // Length, in bytes, of the Parm Packet. 65 65 USHORT Flags; // Output: Flags. … … 161 161 ********************************************************************/ 162 162 163 #pragma pack(1) 164 163 165 /* 164 166 *@@ APM: … … 166 168 * 167 169 *@@added V0.9.14 (2001-08-01) [umoeller] 170 *@@changed V0.9.19 (2002-05-28) [umoeller]: added fUsingAC 168 171 */ 169 172 … … 176 179 usLowestAPMVersion; 177 180 178 B OOLfAlreadyRead;181 BYTE fAlreadyRead; 179 182 // TRUE after the first call to aphReadStatus 180 183 181 // the following are valid after a call to 182 // apmhReadStatus 183 ULONG ulBatteryStatus; 184 // the following are valid after a call to apmhReadStatus 185 186 // Note: According to Eirik, his laptop did not return 187 // bBatteryStatus == 0x03 after the battery had finished 188 // charging. So bBatteryStatus cannot be used to determine 189 // whether the system is running on AC or not. Hence the 190 // addition of fUsingAC. 191 // V0.9.19 (2002-05-28) [umoeller] 192 BYTE fUsingAC; 193 // 0x00 if not on AC, 194 // 0x01 if AC, 195 // 0x02 if on backup power, 196 // 0xFF if unknown 197 198 BYTE bBatteryStatus; 184 199 // copy of APM battery status, that is: 185 200 // Output: 0x00 if battery high, … … 188 203 // 0x03 if battery charging 189 204 // 0xFF if unknown 190 ULONG ulBatteryLife;205 BYTE bBatteryLife; 191 206 // current battery life as percentage (0-100) 192 207 193 208 } APM, *PAPM; 209 210 #pragma pack() 194 211 195 212 APIRET APIENTRY apmhIOCtl(HFILE hfAPMSys, ULONG ulFunction, PVOID pvParamPck, ULONG cbParamPck);
Note:
See TracChangeset
for help on using the changeset viewer.