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  潇洒地走  阅读(171)  评论(0编辑  收藏  举报