@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetExitCodeProcess API !!!!C# Signature: [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] static extern bool GetExitCodeProcess(IntPtr hProcess, out uint lpExitCode); !!!!VB Signature: <DllImport("kernel32.dll", SetLastError:=True)> _ Public Shared Function GetExitCodeProcess(ByVal hProcess As IntPtr, ByRef lpExitCode As System.UInt32) As Boolean End Function !!!!User-Defined Types: [PROCESS_INFORMATION] !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: uint exitCode; if (!PlatformInvoke.GetExitCodeProcess(pi.hProcess, out exitCode)) { int lastError = Marshal.GetLastWin32Error(); throw new System.Runtime.InteropServices.ExternalException(" GetExitCodeProcess Error " + lastError, lastError); } !!!!Alternative Managed API: Process.HasExited@msdn Documentation: GetExitCodeProcess@msdn on MSDN
Edit kernel32.GetExitC...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.