1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-27 17:00:59 +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); 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);