像这样:
using System.Diagnostics;Process[] processlist = Process.GetProcesses();foreach (Process process in processlist){ if (!String.IsNullOrEmpty(process.MainWindowTitle)) { Console.WriteLine("Process: {0} ID: {1} Window title: {2}", process.ProcessName, process.Id, process.MainWindowTitle); }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)