ITCInitSuspend

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.

Syntax

BOOL ITCInitSuspend(
DWORD dwSeconds,
SUSPENDPROC pProcess
);

Parameters

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.

Return Values

TRUE
Suspend occurs.

FALSE
Suspend does not occur.

Header and Library Files

Header File: ITC50.H

Library: ITC50.LIB

More Information

Computer State Functions