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

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

This commit is contained in:
Amrsatrio 2024-09-01 01:38:53 +07:00
parent 351a0207a4
commit 060066cd53

View File

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