SetThreadpoolCallbackPriority function (winbase.h)
Specifies the priority of a callback function relative to other work items in the same thread pool.
void SetThreadpoolCallbackPriority( [in, out] PTP_CALLBACK_ENVIRON pcbe, [in] TP_CALLBACK_PRIORITY Priority );
[in, out] pcbe
A TP_CALLBACK_ENVIRON structure that defines the callback environment. The InitializeThreadpoolEnvironment function returns this structure.
The priority for the callback relative to other callbacks in the same thread pool. This parameter can be one of the following TP_CALLBACK_PRIORITY enumeration values:
||The callback should run at high priority.|
||The callback should run at low priority.|
||The callback should run at normal priority.|
Higher priority callbacks are guaranteed to be run first by the first available worker thread, but they are not guaranteed to finish before lower priority callbacks.
This function is implemented as an inline function.
To compile an application that uses this function, set _WIN32_WINNT >= _WIN32_WINNT_WIN7. For more information, see Using the Windows Headers.
|Minimum supported client||Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps | UWP apps]|
|Header||winbase.h (include Windows.h)|