日期:2014-05-18  浏览次数:20826 次

如何编程关闭进程树?
如何找出某进程的关联进程,并关闭他们?

------解决方案--------------------
C# code
Process[] ps=Process.GetProcessByName("qq.exe");

foreach(Process p in ps)
{
   p.Kill();
}

------解决方案--------------------
Windows does not maintain exact process relationships.
For example:

A spawns B, B spawns C
B is killed, then A and C have no relation to each other.