I am using the 'COM Surrogate' method to host a 32 bit dll, so that it can be called from a 64-bit C# exe. This uses the 'DllSurrogate' method described in Hosting a .NET DLL as an Out-Of-Process COM Server (EXE) .
This works well, but I now have a need for the 32-bit process to allow more than 2GB of address space. It seems that for a normal exe you can use editbin to make the exe largeaddressaware. For example: How to make a .NET application “large address aware”?.
My question is how to make that work when the dll will be hosted in the system COM Surrogate?