Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Assigns a thread pool to a callback environment.
Syntax
VOID TpSetCallbackThreadpool(
[in, out] PTP_CALLBACK_ENVIRON CallbackEnviron,
[in] PTP_POOL Pool
);
Parameters
[in, out] CallbackEnviron
A TP_CALLBACK_ENVIRON structure that defines the callback environment. The TpInitializeCallbackEnviron function returns this structure.
[in] Pool
A TP_POOL structure that defines a thread pool. The CreateThreadpool function returns this structure.
Return value
None
Remarks
If you do not specify a thread pool, the global thread pool is used.
This function is implemented as an inline function.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | winnt.h |
See also
TpSetCallbackActivationContext
TpSetCallbackFinalizationCallback