I want to create an (potentially) Inproc COM object in a separate process. The usual way to do this is to use the Surrogate ( dllhost.exe) COM DLL , but this requires changing the registry for the CLSIDCOM object that will be created. I do not want to change the registry, because I do not care if other instances of this object are created in it. I just want to create a specific object outside the process.
Currently, I have written a COM LocalServer object that takes a prog-id and returns an object, but it feels like it is reinventing the wheel.
Is there a way to programmatically create a COM surrogate and tell it to create a COM object?
source
share