Ignore:
Timestamp:
Jun 2, 2002, 8:20:24 PM (23 years ago)
Author:
umoeller
Message:

Rewrote winlist widget to use daemon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/apmh.h

    r111 r167  
    6060     *---------------------------------------------------------------------------*/
    6161
    62     typedef struct _APMGIO_QSTATUS_PPKT {           // Parameter Packet.
    63 
     62    typedef struct _APMGIO_QSTATUS_PPKT // Parameter Packet.
     63    {
    6464      USHORT ParmLength;    // Length, in bytes, of the Parm Packet.
    6565      USHORT Flags;         // Output:  Flags.
     
    161161     ********************************************************************/
    162162
     163    #pragma pack(1)
     164
    163165    /*
    164166     *@@ APM:
     
    166168     *
    167169     *@@added V0.9.14 (2001-08-01) [umoeller]
     170     *@@changed V0.9.19 (2002-05-28) [umoeller]: added fUsingAC
    168171     */
    169172
     
    176179                usLowestAPMVersion;
    177180
    178         BOOL    fAlreadyRead;
     181        BYTE    fAlreadyRead;
    179182                    // TRUE after the first call to aphReadStatus
    180183
    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;
    184199                    // copy of APM battery status, that is:
    185200                            // Output:  0x00 if battery high,
     
    188203                            //          0x03 if battery charging
    189204                            //          0xFF if unknown
    190         ULONG   ulBatteryLife;
     205        BYTE    bBatteryLife;
    191206                    // current battery life as percentage (0-100)
    192207
    193208    } APM, *PAPM;
     209
     210    #pragma pack()
    194211
    195212    APIRET APIENTRY apmhIOCtl(HFILE hfAPMSys, ULONG ulFunction, PVOID pvParamPck, ULONG cbParamPck);
Note: See TracChangeset for help on using the changeset viewer.