CSC_InheritanceConfig enumeration (comsvcs.h)

Indicates whether to create a new context based on the current context or to create a new context based solely upon the information in CServiceConfig.

Syntax

typedef enum tagCSC_InheritanceConfig {
  CSC_Inherit = 0,
  CSC_Ignore
} CSC_InheritanceConfig;

Constants

 
CSC_Inherit
Value: 0
The new context is created from the existing context.
CSC_Ignore
The new context is created from the default context.

Remarks

The different values of this enumeration can be used to establish the default configurations for the various services provided through CServiceConfig. The default inheritance configuration for CServiceConfig is CSC_Ignore. It is often useful to use CSC_Ignore when calling CoCreateActivity, while CSC_Inherit is useful when augmenting an existing context, such as when calling CoEnterServiceDomain.

Calling IServiceInheritanceConfig::ContainingContextTreatment overwrites any previous configuration settings of the CServiceConfig object with the following defaults.

For CSC_InheritanceConfig set to CSC_Inherit

Enumeration Default
CSC_COMTIIntrinsicsConfig CSC_InheritCOMTIIntrinsics
CSC_IISIntrinsicsConfig CSC_InheritIISIntrinsics
CSC_PartitionConfig CSC_InheritPartition
CSC_SxsConfig CSC_InheritSxs
CSC_SynchronizationConfig CSC_IfContainerIsSynchronized
CSC_ThreadPool CSC_ThreadPoolInherit
CSC_TransactionConfig CSC_IfContainerIsTransactional
 

For CSC_InheritanceConfig set to CSC_Ignore

Enumeration Default
CSC_COMTIIntrinsicsConfig CSC_NoCOMTIIntrinsics
CSC_IISIntrinsicsConfig CSC_NoIISIntrinsics
CSC_PartitionConfig CSC_NoPartition
CSC_SxsConfig CSC_NoSxs
CSC_SynchronizationConfig CSC_NoSynchronization
CSC_ThreadPool CSC_ThreadPoolNone
CSC_TransactionConfig CSC_NoTransaction

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

CServiceConfig

CoCreateActivity

CoEnterServiceDomain

IServiceInheritanceConfig::ContainingContextTreatment