#ifndef _NTTP_H
// winbase:CloseThreadpoolCleanupGroup
/**
* Closes the specified cleanup group.
*
* \param[in,out] CleanupGroup A pointer to a TP_CLEANUP_GROUP structure that defines the cleanup group.
* \sa
* https://learn.microsoft.com/en-us/windows/win32/api/threadpoolapiset/nf-threadpoolapiset-closethreadpoolcleanupgroup
* \remarks A cleanup group owns registrations of member callback objects; release group members first, then
* release the group itself. Cancellation does not imply that an executing callback has returned.
*/
NTSYSAPI
VOID
NTAPI
TpReleaseCleanupGroup(
_Inout_ PTP_CLEANUP_GROUP CleanupGroup
);
View code on GitHubCloses the specified cleanup group.
CloseThreadpoolCleanupGroup maps directly to this function.