TpWaitForWork - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTTP_H

// winbase:WaitForThreadpoolWorkCallbacks
NTSYSAPI
VOID
NTAPI
TpWaitForWork(
    _Inout_ PTP_WORK Work,
    _In_ LOGICAL CancelPendingCallbacks
    );

#endif

View code on GitHub

NtDoc

Waits for outstanding work callbacks to complete and optionally cancels pending callbacks that have not yet started to execute.

Related Win32 API

WaitForThreadpoolWorkCallbacks maps directly to this function.

See also