public static IntPtr WaitForExitWithTimeOut(IntPtr handle, IntPtr timeout_msec) { try{ ProcessHolder.WaitForExit(handle.ToInt32(), timeout_msec.ToInt32()); return(new IntPtr(TRUE)); }catch (Exception) { //pass } return(new IntPtr(FALSE)); }
public static IntPtr WaitForExit(IntPtr handle) { try{ ProcessHolder.WaitForExit(handle.ToInt32()); return(new IntPtr(TRUE)); }catch (Exception) { //pass } return(new IntPtr(FALSE)); }