Waits for outstanding timer callbacks to complete and optionally cancels pending callbacks that have not yet started to execute.
void WaitForThreadpoolTimerCallbacks(
PTP_TIMER pti,
BOOL fCancelPendingCallbacks
)
pti
Type: PTP_TIMERÂ
[in, out] A TP_TIMER structure that defines the timer object. The CreateThreadpoolTimer function returns the TP_TIMER structure.
fCancelPendingCallbacks
Type: BOOLÂ
[in] Indicates whether to cancel queued callbacks that have not yet started to execute.
Header: Declared in threadpoolapiset.h.
Library: Use kernelx.lib.