Browse Source

Removed unnecessary include, changed Progman hook proc name to

better convey its role.
pull/20/head
Valentin Radu 5 years ago
parent
commit
9de9b0153f
  1. 12
      ExplorerPatcherLibrary/dllmain.c

12
ExplorerPatcherLibrary/dllmain.c

@ -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
); );

Loading…
Cancel
Save