From fb4d2aeb15046f96af967df7891d3ded54c8a360 Mon Sep 17 00:00:00 2001 From: wj32 Date: Thu, 28 May 2009 10:59:21 +0000 Subject: [PATCH] disabled properties for DLLs and Mapped Files git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1333 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/ProcessHacker/Components/HandleList.cs | 4 ++-- trunk/ProcessHacker/Forms/HandleFilterWindow.cs | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/trunk/ProcessHacker/Components/HandleList.cs b/trunk/ProcessHacker/Components/HandleList.cs index bb80065d9..8f733717e 100644 --- a/trunk/ProcessHacker/Components/HandleList.cs +++ b/trunk/ProcessHacker/Components/HandleList.cs @@ -322,9 +322,9 @@ namespace ProcessHacker.Components public static bool HasHandleProperties(string type) { if (type == "Token" || type == "Process" || type == "File" || + type == "Job" || type == "Event" || type == "Mutant" || type == "Section" || - type == "Semaphore" || - type == "DLL" || type == "Mapped File") + type == "Semaphore") return true; else return false; diff --git a/trunk/ProcessHacker/Forms/HandleFilterWindow.cs b/trunk/ProcessHacker/Forms/HandleFilterWindow.cs index 27118cbab..9b9cde16f 100644 --- a/trunk/ProcessHacker/Forms/HandleFilterWindow.cs +++ b/trunk/ProcessHacker/Forms/HandleFilterWindow.cs @@ -234,6 +234,11 @@ namespace ProcessHacker private void propertiesMenuItem_Click(object sender, EventArgs e) { + string type = listHandles.SelectedItems[0].SubItems[1].Text; + + if (!HandleList.HasHandleProperties(type)) + return; + try { HandleList.ShowHandleProperties(