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/src/helpers/apmh.c

    r111 r167  
    8080            arc = DataPacket.ReturnCode | 10000;
    8181
    82     return (arc);
     82    return arc;
    8383}
    8484
     
    149149        DosClose(hfAPMSys);
    150150
    151     return (arc);
     151    return arc;
    152152}
    153153
     
    161161 *      call, *pfChanged is set to TRUE; FALSE
    162162 *      otherwise.
     163 *
     164 *@@changed V0.9.19 (2002-05-28) [umoeller]: added fUsingAC
    163165 */
    164166
     
    180182        {
    181183            if (    (pApm->fAlreadyRead)
    182                  || (pApm->ulBatteryStatus != PowerStatus.BatteryStatus)
    183                  || (pApm->ulBatteryLife != PowerStatus.BatteryLife)
     184                 || (pApm->bBatteryStatus != PowerStatus.BatteryStatus)
     185                 || (pApm->bBatteryLife != PowerStatus.BatteryLife)
     186                 || (pApm->fUsingAC != PowerStatus.ACStatus)
    184187               )
    185188            {
    186                 pApm->ulBatteryStatus = PowerStatus.BatteryStatus;
    187                 pApm->ulBatteryLife = PowerStatus.BatteryLife;
     189                pApm->bBatteryStatus = PowerStatus.BatteryStatus;
     190                pApm->bBatteryLife = PowerStatus.BatteryLife;
     191                pApm->fUsingAC = PowerStatus.ACStatus;
    188192
    189193                pApm->fAlreadyRead = FALSE;
     
    198202        arc = ERROR_INVALID_PARAMETER;
    199203
    200     return (arc);
     204    return arc;
    201205}
    202206
     
    236240    {
    237241        if (!apmhReadStatus(p, NULL))
    238             brc = (p->ulBatteryStatus != 0xFF);
     242            brc = (p->bBatteryStatus != 0xFF);
    239243
    240244        apmhClose(&p);
Note: See TracChangeset for help on using the changeset viewer.