close
using System.Diagnostics;
string s = "";
System.Int32 processid;
Process process;
//Retrieve the additional information about a specific process
processid = Int32.Parse(this.textBox1.Text);
process = System.Diagnostics.Process.GetProcessById(processid);
s = s + "該進程的總體優先順序類別:" + Convert.ToString(process.PriorityClass) + " \r\n";
s = s + "由該進程打開的控制碼數:" + process.HandleCount + "\r\n";
s = s + "該進程的主視窗標題:" + process.MainWindowTitle + "\r\n";
s = s + " 該進程允許的最小工作集大小:" + process.MinWorkingSet.ToString() + " \r\n";
s = s + "該進程允許的最大工作集大小:" + process.MaxWorkingSet.ToString() + " \r\n";
s = s + "該進程的分頁記憶體大小:" + process.PagedMemorySize + "\r\n";
s = s + "該進程的峰值分頁記憶體大小:" + process.PeakPagedMemorySize + "\r\n";
System.Windows.Forms.MessageBox.Show(s);
//為了避免異常崩潰 建議放在 TRY 裡運行
----------------------------------------------------------------------------------------------------------------
ShineingShare
在台灣的高速雲端
完全免費
不須註冊帳號
無限檔案空間
無下載流量限制
網站 : http://www.shineingshare.com/
文章標籤
全站熱搜
留言列表