Win32 API 日本語リファレンス
ホームSystem.ComponentServices › CSC_Binding

CSC_Binding

列挙型
基底型i4

メンバー 2

名前10進16進説明
CSC_NoBinding00x0アクティビティを介して送信される処理は、単一の STA にバインドされません。
CSC_BindToPoolThread10x1アクティビティを介して送信される処理は、単一の STA にバインドされます。

公式ドキュメント

CoCreateActivity から返されるアクティビティを介して送信されるすべての処理を、単一のシングルスレッドアパートメント (STA) にのみバインドするかどうかを示します。この列挙型はマルチスレッドアパートメント (MTA) には影響しません。

解説(Remarks)

アクティビティを介して送信されるすべての処理を単一の STA にバインドすることは、さまざまな処理の多くで使用されるコンポーネントへのインターフェイスをマーシャリングする必要をなくすことと、特定の STA 上で同期する必要が生じることとの間のトレードオフになります。

この列挙型は、CoCreateActivity を呼び出すときに CServiceConfig のスレッドプールバインディングを設定する場合にのみ使用されます。CoEnterServiceDomain を呼び出すときにスレッドプールバインディングを設定しようとすると、エラーが返されます。この列挙型の値は MTA には影響しません。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum CSC_Binding : int {
    CSC_NoBinding = 0,
    CSC_BindToPoolThread = 1
} CSC_Binding;
public enum CSC_Binding : int
{
    CSC_NoBinding = 0,
    CSC_BindToPoolThread = 1,
}
Public Enum CSC_Binding As Integer
    CSC_NoBinding = 0
    CSC_BindToPoolThread = 1
End Enum
import enum

class CSC_Binding(enum.IntEnum):
    CSC_NoBinding = 0
    CSC_BindToPoolThread = 1
// CSC_Binding
pub const CSC_NoBinding: i32 = 0;
pub const CSC_BindToPoolThread: i32 = 1;
// CSC_Binding
const (
	CSC_NoBinding int32 = 0
	CSC_BindToPoolThread int32 = 1
)
const
  CSC_NoBinding = 0;
  CSC_BindToPoolThread = 1;
// CSC_Binding
pub const CSC_NoBinding: i32 = 0;
pub const CSC_BindToPoolThread: i32 = 1;
const
  CSC_NoBinding* = 0
  CSC_BindToPoolThread* = 1
enum CSC_Binding : int {
    CSC_NoBinding = 0,
    CSC_BindToPoolThread = 1,
}
#define global CSC_NoBinding        0x0
#define global CSC_BindToPoolThread 0x1