PTP_CLEANUP_GROUP_CANCEL_CALLBACK callback function

Applications implement this callback if they call the SetThreadpoolCallbackCleanupGroup function to specify the callback to use when CloseThreadpoolCleanupGroup is called.

The PTP_CLEANUP_GROUP_CANCEL_CALLBACK type defines a pointer to this callback function. CleanupGroupCancelCallback is a placeholder for the application-defined function name.

Syntax

PTP_CLEANUP_GROUP_CANCEL_CALLBACK PtpCleanupGroupCancelCallback;

void PtpCleanupGroupCancelCallback(
  PVOID ObjectContext,
  PVOID CleanupContext
)
{...}

Parameters

ObjectContext

Optional application-defined data specified during creation of the object.

CleanupContext

Optional application-defined data specified using CloseThreadpoolCleanupGroupMembers.

Return Value

This function does not return a value.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winnt.h (include Windows.h)

See Also

CloseThreadpoolCleanupGroup

CloseThreadpoolCleanupGroupMembers

SetThreadpoolCallbackCleanupGroup

Thread Pools