Search code examples
windowscomdllhost

How to launch COM server in separate dllhost process?


My COM component implemented as surrogated dll. I create one by calling CoCreateInstanceEx(), but it started in shared dllhost.exe process. Is there a way to launch my COM component in separate dllhost process?


Solution

  • Surrogate sharing is documented here. Sharing only happens if the AppId matches. Give yours a unique one.