From 9de9b0153f4aa36625b911f3c0583f6b085bb6e8 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Fri, 13 Aug 2021 04:22:40 +0300 Subject: [PATCH] Removed unnecessary include, changed Progman hook proc name to better convey its role. --- ExplorerPatcherLibrary/dllmain.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ExplorerPatcherLibrary/dllmain.c b/ExplorerPatcherLibrary/dllmain.c index 430e9d5..535f48c 100644 --- a/ExplorerPatcherLibrary/dllmain.c +++ b/ExplorerPatcherLibrary/dllmain.c @@ -6,9 +6,9 @@ #pragma comment(lib, "Psapi.lib") // required by funchook #include #pragma comment(lib, "Shlwapi.lib") -#include -#pragma comment(lib, "Dwmapi.lib") #include +#include +#pragma comment(lib, "UxTheme.lib") #define DEBUG #undef DEBUG @@ -569,7 +569,11 @@ HRESULT CImmersiveHotkeyNotification_OnMessageHook( // Slightly tweaked version of function available in Open Shell // (Open-Shell-Menu\Src\StartMenu\StartMenuHelper\StartMenuHelper.cpp) -LRESULT CALLBACK HookProgManThread(int code, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK OpenStartOnCurentMonitorThreadHook( + int code, + WPARAM wParam, + LPARAM lParam +) { if (code == HC_ACTION && wParam) { @@ -729,7 +733,7 @@ DWORD OpenStartOnCurentMonitorThread(LPVOID unused) ); HHOOK g_ProgHook = SetWindowsHookEx( WH_GETMESSAGE, - HookProgManThread, + OpenStartOnCurentMonitorThreadHook, NULL, progThread );