Changing a process command line before it starts

  arguments, c++, process, windows

So what I’m trying to do is to change a process’ command line arguments before it is launched by another app (essentially to "catch" it, modify the arguments, then launch it).

I have already tried writing a program that kills and launches the process immediately, but it is unsuitable for my needs as I need to also launch the process from it’s parent process, and for the launching application to not detect that the process was killed.

I was wondering there exists a program that does this, or code samples (C++, C#, Python, whatever will do)
that can achieve this task.

Source: Windows Questions

LEAVE A COMMENT