1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

Removed unnecessary include, changed Progman hook proc name to

better convey its role.
This commit is contained in:
Valentin Radu 2021-08-13 04:22:40 +03:00
parent ec808402e0
commit 9de9b0153f

View File

@ -6,9 +6,9 @@
#pragma comment(lib, "Psapi.lib") // required by funchook #pragma comment(lib, "Psapi.lib") // required by funchook
#include <Shlwapi.h> #include <Shlwapi.h>
#pragma comment(lib, "Shlwapi.lib") #pragma comment(lib, "Shlwapi.lib")
#include <dwmapi.h>
#pragma comment(lib, "Dwmapi.lib")
#include <windowsx.h> #include <windowsx.h>
#include <Uxtheme.h>
#pragma comment(lib, "UxTheme.lib")
#define DEBUG #define DEBUG
#undef DEBUG #undef DEBUG
@ -569,7 +569,11 @@ HRESULT CImmersiveHotkeyNotification_OnMessageHook(
// Slightly tweaked version of function available in Open Shell // Slightly tweaked version of function available in Open Shell
// (Open-Shell-Menu\Src\StartMenu\StartMenuHelper\StartMenuHelper.cpp) // (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) if (code == HC_ACTION && wParam)
{ {
@ -729,7 +733,7 @@ DWORD OpenStartOnCurentMonitorThread(LPVOID unused)
); );
HHOOK g_ProgHook = SetWindowsHookEx( HHOOK g_ProgHook = SetWindowsHookEx(
WH_GETMESSAGE, WH_GETMESSAGE,
HookProgManThread, OpenStartOnCurentMonitorThreadHook,
NULL, NULL,
progThread progThread
); );