I use an own Custom Surrogate (myhost.exe) instead of dllhost.exe and registered a series of COM objects with this DllSurrogate. Now I need an additional parameter to be passed to myhost.exe whenever I create an out-of-process instance of my COM objects.
I found out that I can add this additional parameter to the "DllSurrogate" registry entry. But is there any possibility to add this parameter dynamically during CoCreateInstance?