mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-28 01:10:55 +01:00
GUI: Enable search button in Windows 10 taskbar by default on OS builds 22621+
This commit is contained in:
parent
ce6fb8d8f9
commit
baecdcc191
@ -10325,6 +10325,16 @@ DWORD Inject(BOOL bIsExplorer)
|
|||||||
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"MMTaskbarGlomLevel");
|
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())
|
if (IsWindows11())
|
||||||
|
Loading…
Reference in New Issue
Block a user