I have an unmanaged/native executable & I need to somehow get a managed class loaded into its process, only I don't have access to the source code of the exe. The only thing I can do is specify in a config file that it should load the dll when the process starts (presumably using LoadLibrary winapi).
I'm going round in circles trying to figure out how to do it!
Is there a .NET equivalent to DllMain? Can I load an assembly into another process & create objects in it? Can anyone think of a workaround?
Thanks!