public static int ExitCode(this Process process) { int exitCode = 0; NativeWrappers.GetExitCodeProcess(process.Handle, ref exitCode); return(exitCode); }
public static bool IsRunning(this Process process) { int exitCode = 0; return(NativeWrappers.GetExitCodeProcess(process.Handle, ref exitCode) && exitCode == 259); }