System.Diagnostics.Process[] NewProcess = System.Diagnostics.Process.GetProcessesByName("EOCNMS");

            if (NewProcess.Length > 0)
            {
                this.label1.Text = NewProcess[0].Threads.Count.ToString();
                this.label2.Text = NewProcess[0].WorkingSet.ToString();
                this.label5.Text = NewProcess[0].VirtualMemorySize.ToString();
            }

posted on 2010-04-10 13:54  潇洒地走  阅读(182)  评论(0)    收藏  举报