ホーム › System.ComponentServices › CSC_ThreadPool
CSC_ThreadPool
列挙型メンバー 4
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| CSC_ThreadPoolNone | 0 | 0x0 | スレッドプールは使用されません。この値を使用して構成した CServiceConfig オブジェクトを CoCreateActivity に渡した場合は、エラー (CO_E_THREADPOOL_CONFIG) が返されます。これは、CSC_InheritanceConfig が CSC_Ignore に設定されている場合の CServiceConfig の既定のスレッドプール設定です。 |
| CSC_ThreadPoolInherit | 1 | 0x1 | 呼び出し元のスレッドアパートメントと同じ種類のスレッドプールアパートメントが使用されます。呼び出し元のスレッドアパートメントがニュートラルアパートメントの場合は、シングルスレッドアパートメントが使用されます。これは、CSC_InheritanceConfig が CSC_Inherit に設定されている場合の CServiceConfig の既定のスレッドプール設定です。 |
| CSC_STAThreadPool | 2 | 0x2 | シングルスレッドアパートメント (STA) が使用されます。 |
| CSC_MTAThreadPool | 3 | 0x3 | マルチスレッドアパートメント (MTA) が使用されます。 |
公式ドキュメント
CoCreateActivity から返されるアクティビティを通じて送信された作業が実行されるスレッドプールを示します。
解説(Remarks)
この列挙型は、CoCreateActivity を呼び出すときにのみ、CServiceConfig のスレッドプールを設定するために使用します。CoEnterServiceDomain を呼び出すときにスレッドプールを設定しようとすると、エラーが返されます。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum CSC_ThreadPool : int {
CSC_ThreadPoolNone = 0,
CSC_ThreadPoolInherit = 1,
CSC_STAThreadPool = 2,
CSC_MTAThreadPool = 3
} CSC_ThreadPool;public enum CSC_ThreadPool : int
{
CSC_ThreadPoolNone = 0,
CSC_ThreadPoolInherit = 1,
CSC_STAThreadPool = 2,
CSC_MTAThreadPool = 3,
}Public Enum CSC_ThreadPool As Integer
CSC_ThreadPoolNone = 0
CSC_ThreadPoolInherit = 1
CSC_STAThreadPool = 2
CSC_MTAThreadPool = 3
End Enumimport enum
class CSC_ThreadPool(enum.IntEnum):
CSC_ThreadPoolNone = 0
CSC_ThreadPoolInherit = 1
CSC_STAThreadPool = 2
CSC_MTAThreadPool = 3// CSC_ThreadPool
pub const CSC_ThreadPoolNone: i32 = 0;
pub const CSC_ThreadPoolInherit: i32 = 1;
pub const CSC_STAThreadPool: i32 = 2;
pub const CSC_MTAThreadPool: i32 = 3;// CSC_ThreadPool
const (
CSC_ThreadPoolNone int32 = 0
CSC_ThreadPoolInherit int32 = 1
CSC_STAThreadPool int32 = 2
CSC_MTAThreadPool int32 = 3
)const
CSC_ThreadPoolNone = 0;
CSC_ThreadPoolInherit = 1;
CSC_STAThreadPool = 2;
CSC_MTAThreadPool = 3;// CSC_ThreadPool
pub const CSC_ThreadPoolNone: i32 = 0;
pub const CSC_ThreadPoolInherit: i32 = 1;
pub const CSC_STAThreadPool: i32 = 2;
pub const CSC_MTAThreadPool: i32 = 3;const
CSC_ThreadPoolNone* = 0
CSC_ThreadPoolInherit* = 1
CSC_STAThreadPool* = 2
CSC_MTAThreadPool* = 3enum CSC_ThreadPool : int {
CSC_ThreadPoolNone = 0,
CSC_ThreadPoolInherit = 1,
CSC_STAThreadPool = 2,
CSC_MTAThreadPool = 3,
}#define global CSC_ThreadPoolNone 0x0
#define global CSC_ThreadPoolInherit 0x1
#define global CSC_STAThreadPool 0x2
#define global CSC_MTAThreadPool 0x3