Expand Minimize

SetThreadpoolStackInformation function

Sets the stack reserve and commit sizes for new threads in the specified thread pool. Stack reserve and commit sizes for existing threads are not changed.

Syntax


BOOL SetThreadpoolStackInformation(
  _Inout_  PTP_POOL ptpp,
  _In_     PTP_POOL_STACK_INFORMATION ptpsi
);

Parameters

ptpp [in, out]

A TP_POOL structure that specifies the thread pool. The CreateThreadpool function returns this structure.

ptpsi [in]

A TP_POOL_STACK_INFORMATION structure that specifies the stack reserve and commit size for threads in the pool.

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

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

Library

Kernel32.lib

DLL

Kernel32.dll

See also

QueryThreadpoolStackInformation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft