Skip to content

Commit

Permalink
GUI: Enable search button in Windows 10 taskbar by default on OS buil…
Browse files Browse the repository at this point in the history
…ds 22621+
  • Loading branch information
valinet committed Aug 5, 2022
1 parent ce6fb8d commit baecdcc
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 @@ -10325,6 +10325,16 @@ DWORD Inject(BOOL bIsExplorer)
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"MMTaskbarGlomLevel");
}

if (IsWindows11Version22H2OrHigher() && bOldTaskbar)
{
DWORD dwRes = 1;
DWORD dwSize = sizeof(DWORD);
if (RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Search", L"SearchboxTaskbarMode", RRF_RT_DWORD, NULL, &dwRes, &dwSize) != ERROR_SUCCESS)
{
RegSetKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Search", L"SearchboxTaskbarMode", REG_DWORD, &dwRes, sizeof(DWORD));
}
}


/*
if (IsWindows11())
Expand Down

0 comments on commit baecdcc

Please sign in to comment.