GetExitCodeProcess

[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetExitCodeProcess(
   IntPtr hProcess,
   out uint lpExitCode
);

Microsoft documentation: Link

Last updated