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