DeleteTimerQueue function (threadpoollegacyapiset.h)
Deletes a timer queue. Any pending timers in the queue are canceled and deleted.
Syntax
BOOL DeleteTimerQueue(
HANDLE TimerQueue
);
Parameters
TimerQueue
A handle to the timer queue. This handle is returned by the CreateTimerQueue function.
Return value
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.
Remarks
DeleteTimerQueue does not wait for all callback functions associated with the timer to complete.
To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers.
Examples
For an example that uses DeleteTimerQueue, see Using Timer Queues.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | threadpoollegacyapiset.h |
Library | Kernel32.lib |
DLL | Kernel32.lib |