Example
You can register a Win32 kernel handle with a task queue. Your callback will be submitted to the queue when the handle becomes signaled. Typically, you would create an auto-reset event to use for signaling. If the handle isn’t auto-reset, a new callback is submitted when the current callback is completed for as long as the handle is signaled.
The following example shows how to use a task queue waiter.
Sample output
See also
Designing the task queueLast modified on August 4, 2026