TpReleaseWait - NtDoc

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

// winbase:CloseThreadpoolWait
/**
 * Closes the specified wait object.
 *
 * \param[in,out] Wait A pointer to a TP_WAIT structure that defines the wait object.
 * \sa https://learn.microsoft.com/en-us/windows/win32/api/threadpoolapiset/nf-threadpoolapiset-closethreadpoolwait
 * \remarks Releases the caller callback-object reference. Explicitly stop/rearm as appropriate and drain callbacks before reclaiming borrowed context;
 * closing an object is not a safe way to terminate executing user code.
 */
NTSYSAPI
VOID
NTAPI
TpReleaseWait(
    _Inout_ PTP_WAIT Wait
    );

#endif

View code on GitHub

NtDoc

Releases the specified wait object.

Related Win32 API

CloseThreadpoolWait maps directly to this function.

See also