Important: The information in this document is obsolete and should not be used for new development.
GetWUTime
You can use theGetWUTimefunction 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
TheGetWUTimefunction returns the current setting of the wakeup timer and indicates whether the wakeup timer is enabled. The value returned in theWUTimeparameter 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 theWUFlagparameter is set to 1, the wakeup timer is enabled. The other bits in theWUFlagparameter are reserved.SPECIAL CONSIDERATIONS
TheGetWUTimefunction returns an error on machines that do not support the wakeup timer.RESULT CODES
noErr 0 No error pmBusyErr -13001 Wakeup timer is not available on this machine