added LPC port wait detection and NT user message wait detection

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1335 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2009-05-28 11:21:09 +00:00
parent 55fff11df8
commit e71c5a2053
@@ -932,6 +932,31 @@ namespace ProcessHacker.Components
sb.AppendLine(this.GetHandleString(_pid, handle));
}
else if (
name.StartsWith("ntdll.dll!zwreplywaitreceiveport") ||
name.StartsWith("ntdll.dll!ntreplywaitreceiveport") ||
name.StartsWith("ntdll.dll!zwrequestwaitreplyport") ||
name.StartsWith("ntdll.dll!ntrequestwaitreplyport") ||
name.StartsWith("ntdll.dll!zwalpcsendwaitreceiveport") ||
name.StartsWith("ntdll.dll!ntalpcsendwaitreceiveport")
)
{
found = true;
IntPtr handle = stackFrame.Params[0];
sb.AppendLine("Thread " + tid.ToString() + " is waiting for a LPC port:");
sb.AppendLine(this.GetHandleString(_pid, handle));
}
else if (
name.StartsWith("ntdll.dll!ntusergetmessage")
)
{
found = true;
sb.AppendLine("Thread " + tid.ToString() + " is waiting for a USER message.");
}
else if (
name.StartsWith("ntdll.dll!zwdelayexecution") ||
name.StartsWith("ntdll.dll!ntdelayexecution")