Process started by Process.start() returns incorrect process ID?
An example of how I did it: bool started = false; var p = new Process(); p.StartInfo.FileName = “notepad.exe”; started = p.Start(); try { var procId = p.Id; Console.WriteLine(“ID: ” + procId); } catch(InvalidOperationException) { started = false; } catch(Exception ex) { started = false; } Otherwise, try using handles like this: Using handlers Getting … Read more