Changeset 5394 for trunk/include


Ignore:
Timestamp:
Mar 28, 2001, 6:22:19 PM (25 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winbase.h

    r5148 r5394  
    883883
    884884
    885 typedef struct _SYSTEM_POWER_STATUS
    886 {
    887   BOOL16  ACLineStatus;
    888   BYTE    BatteryFlag;
    889   BYTE    BatteryLifePercent;
    890   BYTE    reserved;
    891   DWORD   BatteryLifeTime;
    892   DWORD   BatteryFullLifeTime;
    893 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
     885/* Power Management functions */
     886
     887#define AC_LINE_OFFLINE                 0x00
     888#define AC_LINE_ONLINE                  0x01
     889#define AC_LINE_BACKUP_POWER            0x02
     890#define AC_LINE_UNKNOWN                 0xFF
     891
     892#define BATTERY_FLAG_HIGH               0x01
     893#define BATTERY_FLAG_LOW                0x02
     894#define BATTERY_FLAG_CRITICAL           0x04
     895#define BATTERY_FLAG_CHARGING           0x08
     896#define BATTERY_FLAG_NO_BATTERY         0x80
     897#define BATTERY_FLAG_UNKNOWN            0xFF
     898
     899#define BATTERY_PERCENTAGE_UNKNOWN      0xFF
     900
     901#define BATTERY_LIFE_UNKNOWN        0xFFFFFFFF
     902
     903typedef struct _SYSTEM_POWER_STATUS {
     904    BYTE ACLineStatus;
     905    BYTE BatteryFlag;
     906    BYTE BatteryLifePercent;
     907    BYTE Reserved1;
     908    DWORD BatteryLifeTime;
     909    DWORD BatteryFullLifeTime;
     910}   SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
     911
    894912
    895913typedef struct _MEMORY_BASIC_INFORMATION
Note: See TracChangeset for help on using the changeset viewer.