Skip to content

Instantly share code, notes, and snippets.

@m417z
Last active March 29, 2025 12:36
Show Gist options
  • Save m417z/e362f4ba40d815367e18f46ab6da5aa1 to your computer and use it in GitHub Desktop.
Save m417z/e362f4ba40d815367e18f46ab6da5aa1 to your computer and use it in GitHub Desktop.
This mod tries to improve compatibility of taskbar mods with StartAllBack due to recent changes in Windows - https://github.com/ramensoftware/windhawk-mods/issues/1698
// ==WindhawkMod==
// @id taskbar-view-dll-early-loader
// @name Taskbar.View.dll early loader
// @description This mod tries to improve compatibility of taskbar mods with StartAllBack due to recent changes in Windows
// @version 0.1
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include explorer.exe
// @architecture x86-64
// ==/WindhawkMod==
// ==WindhawkModReadme==
/*
# Taskbar.View.dll early loader
This mod tries to improve compatibility of taskbar mods with StartAllBack due to
recent changes in Windows.
*/
// ==/WindhawkModReadme==
BOOL Wh_ModInit() {
Wh_Log(L">");
constexpr WCHAR dir[] =
LR"(C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy)";
auto cookie = AddDllDirectory(dir);
constexpr WCHAR p[] =
LR"(C:\Windows\SystemApps\SxS\MicrosoftWindows.55182690.Taskbar_cw5n1h2txyewy\Taskbar.View.dll)";
HMODULE module = LoadLibraryEx(
p, nullptr,
LOAD_LIBRARY_SEARCH_SYSTEM32 | LOAD_LIBRARY_SEARCH_USER_DIRS);
Wh_Log(L"Taskbar.View.dll: %p", module);
RemoveDllDirectory(cookie);
return TRUE;
}
void Wh_ModUninit() {
Wh_Log(L">");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment