[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool GetExitCodeProcess(IntPtr hProcess, out uint lpExitCode);
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Shared Function GetExitCodeProcess(ByVal hProcess As IntPtr, ByRef lpExitCode As System.UInt32) As Boolean
End Function
None.
Please add some!
uint exitCode;
if (!PlatformInvoke.GetExitCodeProcess(pi.hProcess, out exitCode)) {
int lastError = Marshal.GetLastWin32Error();
throw new System.Runtime.InteropServices.ExternalException(" GetExitCodeProcess Error " + lastError, lastError);
}