Sets the maximum number of threads that the specified thread pool can allocate to process callbacks.
void SetThreadpoolThreadMaximum(
PTP_POOL ptpp,
DWORD cthrdMost
)
ptpp
Type: PTP_POOLÂ
[in, out] A TP_POOL structure that defines the thread pool. The CreateThreadpool function returns this structure.
cthrdMost
Type: DWORDÂ
[in] The maximum number of threads.
To specify the minimum number of threads available in the pool, call SetThreadpoolThreadMinimum.
Header: Declared in threadpoolapiset.h.
Library: Use kernelx.lib.