摘要: Process[] ps = Process.GetProcessesByName(processName); for (int i = 0; i < ps.Length; i++) { if (i == 0) { uploadHandle = ps[i].MainWindowHandle; } else { ps[i].Kill(); } }上面代码如果要查找的程序在系统托盘中,MainW... 阅读全文
posted @ 2009-05-21 10:25 南守拥 阅读(810) 评论(0) 推荐(0) 编辑