Reputation: 8143
According to this article: http://msdn.microsoft.com/en-us/library/ms809975.aspx you can export a component in a service.
But is it possible to create several services that export different instance of the same component?
I see one potential issue is when defining the \HKEY_CLASSES_ROOT\AppID\\LocalService, since each service have different name I can't have them all in the same key.
Thanks
Upvotes: 0
Views: 177
Reputation: 942247
It is quite explicitly mentioned in the linked article:
Do not use REGCLS_SINGLEUSE. Registration fails if you use this flag. The operating system allows a single instance of a service. For this reason, the COM component must be available to multiple clients simultaneously.
You have to use a regular out-of-process server if you want multiple instances of it.
Upvotes: 2
Reputation: 11431
Upvotes: 0