From f3bfe0644a419ff7bfedda98cebc4783a41ebf46 Mon Sep 17 00:00:00 2001 From: wj32 Date: Thu, 28 May 2009 11:35:46 +0000 Subject: [PATCH] added I/O device control wait detection git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1339 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/ProcessHacker/Components/ThreadList.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/trunk/ProcessHacker/Components/ThreadList.cs b/trunk/ProcessHacker/Components/ThreadList.cs index da2c8bcac..46c5f4f83 100644 --- a/trunk/ProcessHacker/Components/ThreadList.cs +++ b/trunk/ProcessHacker/Components/ThreadList.cs @@ -941,7 +941,20 @@ namespace ProcessHacker.Components IntPtr handle = stackFrame.Params[0]; - sb.AppendLine("Thread " + tid.ToString() + " is waiting for a named pipe:"); + sb.AppendLine("Thread " + tid.ToString() + " is waiting for a named pipe or a file:"); + + sb.AppendLine(this.GetHandleString(_pid, handle)); + } + else if ( + name.StartsWith("ntdll.dll!zwdeviceiocontrolfile") || + name.StartsWith("ntdll.dll!ntdeviceiocontrolfile") + ) + { + found = true; + + IntPtr handle = stackFrame.Params[0]; + + sb.AppendLine("Thread " + tid.ToString() + " is waiting for an I/O control request:"); sb.AppendLine(this.GetHandleString(_pid, handle)); }