From f140fd892fa44c7fa4ef116c3e4c951bc999ca07 Mon Sep 17 00:00:00 2001 From: wj32 Date: Sun, 19 Apr 2009 03:21:35 +0000 Subject: [PATCH] added error message when attempting to view kernel thread stacks git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1095 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/ProcessHacker/Components/ThreadList.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/trunk/ProcessHacker/Components/ThreadList.cs b/trunk/ProcessHacker/Components/ThreadList.cs index cb0775d34..d693866fd 100644 --- a/trunk/ProcessHacker/Components/ThreadList.cs +++ b/trunk/ProcessHacker/Components/ThreadList.cs @@ -477,7 +477,16 @@ namespace ProcessHacker.Components private void inspectThreadMenuItem_Click(object sender, EventArgs e) { - if (_pid == Process.GetCurrentProcess().Id) + if (_pid == 4) + { + MessageBox.Show( + "Process Hacker does not currently support viewing kernel call stacks.", + "Process Hacker", MessageBoxButtons.OK, MessageBoxIcon.Error); + + return; + } + + if (_pid == Win32.GetCurrentProcessId()) { if (MessageBox.Show( "Inspecting Process Hacker's threads will lead to instability. Are you sure you want to continue?",