private void errorExit() { foreach (IntPtr ptr in childPtr) { IPC.PostMessage(ptr, IPC.WM_POST_Kill, this.Handle, 0); } System.Environment.Exit(3); }
private void startCalc(IntPtr handle) { ProcessArgs pa = new ProcessArgs(); pa.handle = handle; pa.MMFName = string.Format("{0}_{1}", this.baseMMFName, handle); this.paList.Add(pa); IPC.PostMessage(handle, IPC.WM_POST_NOTIFY, this.Handle, 0); Console.WriteLine(string.Format("子进程{0} ready, mmf name: {1}, 启动计算...", handle, pa.MMFName)); childPtr.Add(handle); }