GetExitCodeProcess

[DllImport("coredll.dll", SetLastError = true)]
public static extern bool GetExitCodeProcess(
   IntPtr hProcess,
   out uint lpExitCode
);

Microsoft documentation: Link

Last updated