QueryThreadpoolStackInformation 函式 (threadpoolapiset.h)

擷取指定線程集區中線程的堆疊保留和認可大小。

語法

BOOL QueryThreadpoolStackInformation(
  [in]  PTP_POOL                   ptpp,
  [out] PTP_POOL_STACK_INFORMATION ptpsi
);

參數

[in] ptpp

指定線程集區之 TP_POOL 結構的指標。 CreateThreadpool 函式會傳回此指標。

[out] ptpsi

接收堆疊保留和認可大小的 TP_POOL_STACK_INFORMATION 結構的指標。

傳回值

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

備註

若要編譯使用此函式的應用程式,請將 _WIN32_WINNT 設定為 _WIN32_WINNT_WIN7。 如需詳細資訊,請參閱 使用 Windows 標頭

規格需求

需求
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 threadpoolapiset.h (包含 Windows.h)
程式庫 Kernel32.lib
DLL Kernel32.dll

另請參閱

SetThreadpoolStackInformation