CSC_Binding enumeration (comsvcs.h)

Indicates whether all of the work that is submitted via the activity returned from CoCreateActivity should be bound to only one single-threaded apartment (STA). This enumeration has no impact on the multithreaded apartment (MTA).

Syntax

typedef enum tagCSC_Binding {
  CSC_NoBinding = 0,
  CSC_BindToPoolThread
} CSC_Binding;

Constants

 
CSC_NoBinding
Value: 0
The work submitted through the activity is not bound to a single STA.
CSC_BindToPoolThread
The work submitted through the activity is bound to a single STA.

Remarks

Binding all of the work submitted through the activity to a single STA involves a trade-off between avoiding the need to marshal interfaces to components used by many of the different bits of work versus needing to synchronize on a specific STA.

This enumeration is used only to set the thread pool binding for CServiceConfig when calling CoCreateActivity. An error is returned if you try to set the thread pool binding when calling CoEnterServiceDomain. The values of this enumeration have no impact upon the MTA.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header comsvcs.h

See also

CoCreateActivity

CoEnterServiceDomain

IServiceThreadPoolConfig::SetBindingInfo