Platform SDK: DLLs, Processes, and Threads |
The DeleteTimerQueue function deletes a timer queue. Any pending timers in the queue are canceled and deleted.
To use a completion event, call the DeleteTimerQueueEx function.
BOOL DeleteTimerQueue( HANDLE TimerQueue, // handle to timer queue );
If the timer was created using the default timer queue, this parameter should be NULL.
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.
DeleteTimerQueue does not wait for all callback functions associated with the timer to complete.
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, DeleteTimerQueueEx, DeleteTimerQueueTimer, Thread Pooling