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 Routines / Controlling and Reading the Wakeup Timer


GetWUTime

You can use the GetWUTime function to read the current setting of the wakeup timer.

FUNCTION GetWUTime (VAR WUTime: LongInt; VAR WUFlag: Byte): OSErr;
WUTime
On exit, the current setting of the wakeup timer, specified as the number of seconds since midnight, January 1, 1904.
WUFlag
On exit, a bit field encoding the state of the wakeup timer.
DESCRIPTION
The GetWUTime function returns the current setting of the wakeup timer and indicates whether the wakeup timer is enabled. The value returned in the WUTime parameter is the current setting of the wakeup timer, specified as the number of seconds since midnight, January 1, 1904. If the low-order bit (bit 0) of the WUFlag parameter is set to 1, the wakeup timer is enabled. The other bits in the WUFlag parameter are reserved.

SPECIAL CONSIDERATIONS
The GetWUTime function returns an error on machines that do not support the wakeup timer.

RESULT CODES
noErr0No error
pmBusyErr-13001Wakeup timer is not available on this machine

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996