Important: The information in this document is obsolete and should not be used for new development.
SetSleepTimeout
You can use theSetSleepTimeout
function to set how long the computer will wait before going to sleep.
void SetSleepTimeout(unsigned char timeout);
timeout
- The amount of time that the computer will wait after the last user activity before going to sleep expressed as a number of 15-second intervals.
DESCRIPTION
TheSetSleepTimeout
function sets the amount of time the computer will wait after the last user activity before going to sleep. The value of SetSleepTimeout is expressed as the number of 15-second intervals making up the desired time. If a value of 0 is passed in, the function sets thetimeout
value to the default value (currently equivalent to 8 minutes).ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forSetSleepTimeout
is 3 ($03) in the low word of register D0. The sleep timeout value to set is passed in the high word of register D0.