Skip to content

Commit

Permalink
Taskbar11: Fixed Task manager menu entry doing nothing on 24H2+ (#3021,
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Aug 31, 2024
1 parent 351a020 commit 060066c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 060066c

Please sign in to comment.