Waits for outstanding wait callbacks to complete and optionally cancels pending callbacks that have not yet started to execute.
void WaitForThreadpoolWaitCallbacks(
PTP_WAIT pwa,
BOOL fCancelPendingCallbacks
)
pwa
Type: PTP_WAITÂ
[in, out] A TP_WAIT structure that defines the wait object. The CreateThreadpoolWait function returns the TP_WAIT 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.