QueryThreadpoolStackInformation function (threadpoolapiset.h)
Retrieves the stack reserve and commit sizes for threads in the specified thread pool.
Syntax
BOOL QueryThreadpoolStackInformation(
[in] PTP_POOL ptpp,
[out] PTP_POOL_STACK_INFORMATION ptpsi
);
Parameters
[in] ptpp
A pointer to a TP_POOL structure that specifies the thread pool. The CreateThreadpool function returns this pointer.
[out] ptpsi
A pointer to a TP_POOL_STACK_INFORMATION structure that receives the stack reserve and commit size.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
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 | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | threadpoolapiset.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |