I need to detect process creation of a third-party .NET application. My goal is to inject a plugin DLL to enhance functionality of this application. I would prefer to inject this as early as possible so I can catch the application’s initialization events. Is there any way to detect when this process is created and inject the DLL before Main is called?
Share
The usual solution is to replace the targeted application image with a stub that launches the original image under controlled parameters.
There are other ways, like GFlags, but they’re intended for debugging not for normal operations.