Partager via


SimpleCallback callback function

Applications implement this callback if they call the TrySubmitThreadpoolCallback function to start a worker thread.

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

Syntax

VOID CALLBACK SimpleCallback(
  _Inout_     PTP_CALLBACK_INSTANCE Instance,
  _Inout_opt_ PVOID                 Context
);

Parameters

Return value

This function does not return a value.

Requirements

Minimum supported client

Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 [desktop apps | UWP apps]

Header

WinBase.h on Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2 (include Windows.h); Threadpoolapiset.h on Windows 8 and Windows Server 2012

See also

TrySubmitThreadpoolCallback