Group: Synchronization - Library: kernel32
How to suspend or hibernate your system
HANDLE WINAPI CreateWaitableTimer(
LPSECURITY_ATTRIBUTES lpTimerAttributes,
BOOL bManualReset,
LPCTSTR lpTimerName
);
DECLARE INTEGER CreateWaitableTimer IN kernel32;
INTEGER lpTimerAttrib,;
INTEGER bManualReset,;
STRING lpTimerName
lpTimerAttributes [in] A pointer to a SECURITY_ATTRIBUTES structure that specifies a security descriptor for the new timer object and determines whether child processes can inherit the returned handle.
bManualReset [in] If this parameter is TRUE, the timer is a manual-reset notification timer. Otherwise, the timer is a synchronization timer.
lpTimerName [in] The name of the timer object. The name is limited to MAX_PATH characters. Name comparison is case sensitive. If lpTimerName is NULL, the timer object is created without a name.
If the function succeeds, the return value is a handle to the timer object.
Use the CloseHandle function to close the handle. The system closes the handle automatically when the process terminates. The timer object is destroyed when its last handle has been closed.