TpSetCallbackCleanupGroup function

Associates the specified cleanup group with the specified callback environment.

Syntax

void TpSetCallbackCleanupGroup(
  PTP_CALLBACK_ENVIRON              CallbackEnviron,
  PTP_CLEANUP_GROUP                 CleanupGroup,
  PTP_CLEANUP_GROUP_CANCEL_CALLBACK CleanupGroupCancelCallback
);

Parameters

CallbackEnviron

A TP_CALLBACK_ENVIRON structure that defines the callback environment. The TpInitializeCallbackEnviron function returns this structure.

CleanupGroup

A TP_CLEANUP_GROUP structure that defines the cleanup group. The CreateThreadpoolCleanupGroup function returns this structure.

CleanupGroupCancelCallback

The cleanup callback to be called if the cleanup group is canceled before the associated object is released. The function is called when you call CloseThreadpoolCleanupGroupMembers.

Return Value

This function does not return a value.

Remarks

This function is implemented as an inline function.

Requirements

   
Target Platform Windows
Header winnt.h

See Also

TpDestroyCallbackEnviron

TpInitializeCallbackEnviron

TpSetCallbackActivationContext

TpSetCallbackFinalizationCallback

TpSetCallbackLongFunction

TpSetCallbackNoActivationContext

TpSetCallbackPersistent

TpSetCallbackPriority

TpSetCallbackRaceWithDll

TpSetCallbackThreadpool