Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 6 - Power Manager / Power Manager Reference
Data Structures


Battery Time Structure

The GetBatteryTimes function returns information about the time remaining on the computer's battery or batteries in a data structure of type BatteryTimeRec.

typedef struct BatteryTimeRec {
   unsigned long expectedBatteryTime;  /* estimated time remaining */
   unsigned long minimumBatteryTime;   /* minimum time remaining */
   unsigned long maximumBatteryTime;   /* maximum time remaining */
   unsigned long timeUntilCharged;     /* time until full charge */
} BatteryTimeRec;

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996