CSC_ThreadPool enumeration (comsvcs.h)
Indicates the thread pool in which the work runs that is submitted through the activity returned from CoCreateActivity.
Syntax
typedef enum tagCSC_ThreadPool {
CSC_ThreadPoolNone = 0,
CSC_ThreadPoolInherit,
CSC_STAThreadPool,
CSC_MTAThreadPool
} CSC_ThreadPool;
Constants
CSC_ThreadPoolNone Value: 0 No thread pool is used. If this value is used to configure a CServiceConfig object that is passed to CoCreateActivity, an error (CO_E_THREADPOOL_CONFIG) is returned. This is the default thread pool setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Ignore. |
CSC_ThreadPoolInherit The same type of thread pool apartment as the caller's thread apartment is used. If the caller's thread apartment is the neutral apartment, a single-threaded apartment is used. This is the default thread pool setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit. |
CSC_STAThreadPool A single-threaded apartment (STA) is used. |
CSC_MTAThreadPool A multithreaded apartment (MTA) is used. |
Remarks
This enumeration is used to set the thread pool for CServiceConfig only when calling CoCreateActivity. An error is returned if you try to set the thread pool when calling CoEnterServiceDomain.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | comsvcs.h |