开发者

Several Services exporting the same COM component

According to t开发者_运维技巧his 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


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.


You can have multiple instances of the same service export a single different instance of the same component.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜