Sets a timeout (in seconds) until the computer suspends and sets up a 'suspend routine' that is called just before the suspend is executed. Whether or not the suspend is carried out depends on the result code (return value) of this suspend function.
BOOL ITCInitSuspend( DWORD dwSeconds, SUSPENDPROC pProcess );
dwSeconds
[in] The time to wait (in seconds) before initiating the suspend. Range is 0 to 4,294,967,295 seconds.
pProcess
[in] A pointer to a function that is called prior to suspending. If NULL, no function is called.
TRUE
Suspend occurs.
FALSE
Suspend does not occur.
Header File: ITC50.H
Library: ITC50.LIB