#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
);
View code on GitHubReleases the specified wait object.
CloseThreadpoolWait maps directly to this function.