SetThreadpoolCallbackPersistent function (winbase.h)

Specifies that the callback should run on a persistent thread.

Syntax

void SetThreadpoolCallbackPersistent(
  [in, out] PTP_CALLBACK_ENVIRON pcbe
);

Parameters

[in, out] pcbe

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

Return value

None

Remarks

This function is implemented as an inline function.

To compile an application that uses this function, set _WIN32_WINNT to _WIN32_WINNT_WIN7. For more information, see Using the Windows Headers.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)