Important: The information in this document is obsolete and should not be used for new development.
GetWakeupTimer
You can use theGetWakeupTimer
function to find out when the computer will wake up from sleep mode.
void GetWakeupTimer(WakeupTime *theTime);
theTime
- A pointer to a
WakeupTime
structure, which specifies whether the timer is enabled or disabled and the time at which the wakeup timer is set to wake the computer.DESCRIPTION
TheGetWakeupTimer
function returns the time when the computer will wake up from sleep mode.If the PowerBook model doesn't support the wakeup timer,
GetWakeupTimer
returns a value of 0.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forGetWakeupTimer
is 22 ($16) in the low word of register D0. The pointer toWakeupTime
is passed in register A0.SEE ALSO
The WakeupTime structure is described in "Wakeup Time Structure," on page 6-27.