Applies to: desktop apps only
Specifies and configures the services that are to be active in the service domain entered when calling either CoCreateActivity or CoEnterServiceDomain.
When to implement
This class is implemented by COM+.
| CLSID | CLSID_CServiceConfig |
|---|---|
| ProgID | L"COMSVCS.CServiceConfig" |
| Interfaces |
When to use
Use this class to configure the services that you want to use. CoCreateActivity and CoEnterServiceDomain enable you to use the services configured by this class without needing to tie those services to a component before using them.
This class was not designed to be used in Visual Basic.
Remarks
To create this object, call CoCreateInstance.
Objects instantiated from the CServiceConfig class aggregate the free-threaded marshaler so that they can be stored by system runtimes and reused in different apartments.
To configure an individual service, call QueryInterface for the interface associated with the service and then call methods on that interface to establish the appropriate configuration.
Requirements
|
Minimum supported client | Windows XP with SP1 |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
See also
- CoCreateActivity
- CoCreateFreeThreadedMarshaler
- CoEnterServiceDomain
- CoLeaveServiceDomain
- COM+ Services Without Components
Send comments about this topic to Microsoft
Build date: 2/3/2012