获取进程列表
获取进程列表:
public static string GetProcessList() { string str=""; Process[] processes=Process.GetProcesses(); Process proces; for (int i=0;i<processes.Length;i++) { proces=processes[i]; str += Convert.ToString(proces.Id) + ":" + proces.ProcessName + "\r\n";//proces.MainWindowTitle 主窗口标题 } return str; }