110,533
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Diagnostics;
using System.Linq;
...
public static bool IsProcessSuspended(Process p)
{
return p.Threads.OfType<ProcessThread>().All(t => t.WaitReason == ThreadWaitReason.Suspended);
}