I've got a windows forms application that opens instances of another application through a WebBrowser control. On exit / exception I want to make sure that 3rd party application closes.
The following code kills the app ok but I want to make sure it will only end the process if it was started by my application
string processName = "Plugin";
Process processes = Process.GetProcessesByName(processName);
foreach (Process process in processes)
Does processes consider all processes or just those started by my application? On testing it seems to close all.
View Complete Post