I am creating a WPF application in C# that will monitor the processes running on a machine. I want to be able to collect a list of currently running processes and compare them to a list of processes I want to run. If the process I want to run is not yet running, then my application will start it.
I am having a problem getting the processes by name because I have numerous processes running off of one parent application (they are all started with different executable parameters,) so they all have the same process name. I also can't use process ID because there is no way for me to know the PID of processes started outside of my application. I need some way to differentiate the processes from one another both started in and outside of my application so that I can tell if they are already running. Any help is appreciated, thanks.