Browse Source

Taskbar11: Fixed Task manager menu entry doing nothing on 24H2+ (#3021, #3556)

pull/3714/head
Amrsatrio 1 year ago
parent
commit
060066cd53
  1. 10
      ExplorerPatcher/dllmain.c

10
ExplorerPatcher/dllmain.c

@ -2128,6 +2128,16 @@ INT64 Shell_TrayWndSubclassProc(
{ {
LaunchPropertiesGUI(hModule); 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 else
{ {
PostMessageW(hWnd, WM_COMMAND, res, 0); PostMessageW(hWnd, WM_COMMAND, res, 0);

Loading…
Cancel
Save