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
Power Manager Dispatch Routines / Controlling the Sleep and Wakeup Timers


GetSleepTimeout

You can use the GetSleepTimeout function to find out how long the computer will wait before going to sleep.

unsigned char GetSleepTimeout();
DESCRIPTION
The GetSleepTimeout function returns the amount of time that the computer will wait after the last user activity before going to sleep. The value of GetSleepTimeout is expressed as the number of 15-second intervals that the computer will wait before going to sleep.

ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for GetSleepTimeout is 2 ($02) in the low word of register D0. The sleep timeout value is returned in the low word of register D0.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996