コード例 #1
0
        public static int ExitCode(this Process process)
        {
            int exitCode = 0;

            NativeWrappers.GetExitCodeProcess(process.Handle, ref exitCode);
            return(exitCode);
        }
コード例 #2
0
        public static bool IsRunning(this Process process)
        {
            int exitCode = 0;

            return(NativeWrappers.GetExitCodeProcess(process.Handle, ref exitCode) && exitCode == 259);
        }