From 060066cd5362a8c9908355aaa2668669fd68d163 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 1 Sep 2024 01:38:53 +0700 Subject: [PATCH] Taskbar11: Fixed Task manager menu entry doing nothing on 24H2+ (#3021, #3556) --- ExplorerPatcher/dllmain.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index c4b6076..9960962 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -2128,6 +2128,16 @@ INT64 Shell_TrayWndSubclassProc( { LaunchPropertiesGUI(hModule); } + else if (res == 420) + { + // Restore Task Manager context menu item action on 24H2+ + SHELLEXECUTEINFOW sei = { sizeof(sei) }; + sei.fMask = SEE_MASK_DOENVSUBST; + sei.lpFile = L"%SystemRoot%\\system32\\taskmgr.exe"; + sei.lpParameters = L"/4"; + sei.nShow = SW_SHOWNORMAL; + ShellExecuteExW(&sei); + } else { PostMessageW(hWnd, WM_COMMAND, res, 0);