GetExitCodeThread

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

Microsoft documentation: Link

Last updated