From c9a3217ccf8b8569a7b19277c90e505c139850f8 Mon Sep 17 00:00:00 2001 From: David Reguera Date: Fri, 31 Mar 2017 00:36:11 +0200 Subject: [PATCH] x64dbgplugin: enable launch watcher in non debuggee --- x64dbgplugin/PluginTemplate/plugin.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/x64dbgplugin/PluginTemplate/plugin.cpp b/x64dbgplugin/PluginTemplate/plugin.cpp index 712b85e..e3e9eb1 100644 --- a/x64dbgplugin/PluginTemplate/plugin.cpp +++ b/x64dbgplugin/PluginTemplate/plugin.cpp @@ -48,6 +48,10 @@ void ExecuteNewProcessLauncher(BOOL old_process, wchar_t* path) ReleaseMutex(hMutex); result = MessageBoxA(NULL, "NewProcessWatcher is not running, do you want launch it?", PLUGIN_NAME, MB_YESNO | MB_ICONQUESTION | MB_TOPMOST); } + else + { + _plugin_logprintf("[" PLUGIN_NAME "] NewProcessWatcher already Open"); + } } if (result == IDYES) @@ -80,7 +84,11 @@ void GetCurrentPath(WCHAR * current_path) PLUG_EXPORT void CBMENUENTRY(CBTYPE cbType, PLUG_CB_MENUENTRY* info) { - if (info->hEntry != MENU_INFO && info->hEntry != MENU_HELP) + if (info->hEntry != MENU_INFO && + info->hEntry != MENU_HELP && + info->hEntry != MENU_NEW_PROCESS_WATCHER && + info->hEntry != MENU_NEW_PROCESS_WATCHER_OLD + ) { if (!DbgIsDebugging()) {