Platform SDK: DLLs, Processes, and Threads |
The ChangeTimerQueueTimer function updates a timer-queue timer that was created by the CreateTimerQueueTimer function.
BOOL ChangeTimerQueueTimer( HANDLE TimerQueue, // handle to timer queue HANDLE Timer, // handle to timer ULONG DueTime, // timer due time ULONG Period // timer period );
If this parameter is NULL, the timer is associated with the default timer queue.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
You can call ChangeTimerQueueTimer in a timer callback.
If you call ChangeTimerQueueTimer on a one-shot timer (its period is zero) that has already expired, the timer is not updated.
Do not call ChangeTimerQueueTimer after calling DeleteTimerQueueTimer on a handle.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Synchronization Overview, Synchronization Functions, CreateTimerQueue, CreateTimerQueueTimer, DeleteTimerQueueTimer, Thread Pooling