Skip to content

Instantly share code, notes, and snippets.

// ==WindhawkMod==
// @id disable-topmost-2-hang-fix
// @name Win10 taskbar disable_topmost=2 hang fix
// @description An attempt at fixing a taskbar hang when using disable_topmost=2
// @version 0.1
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include explorer.exe
@m417z
m417z / aerexplorer-fork.wh.cpp
Created August 1, 2024 15:16
Updated to be compatible with Windhawk 1.5
// ==WindhawkMod==
// @id aerexplorer-fork
// @name Aerexplorer - Fork
// @description Various tweaks for Windows Explorer to make it more like older versions.
// @version 1.6.2
// @author aubymori
// @github https://github.com/aubymori
// @include *
// @compilerOptions -lgdi32 -lcomctl32 -lole32 -loleaut32 -luxtheme -ldwmapi
// ==/WindhawkMod==
@m417z
m417z / WhSignalDrv.c
Created July 27, 2024 17:50 — forked from valinet/WhSignalDrv.c
Exmple of DLL and driver that signal Windhawk to scan for new processes
// Example of a driver that helps Windhawk
// inject processes created by inaccessible processes early on
// ==========================================================================
// Valentin-Gabriel Radu, valentin.radu@valinet.ro
//
// Upstream issue:
// https://github.com/ramensoftware/windhawk/issues/197
//
#include <ntifs.h>
#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)
// ==WindhawkMod==
// @id icon-resource-redirect-loadimagea-test
// @name Resource Redirect
// @description Define alternative files for loading various resources (e.g. instead of icons in imageres.dll) for simple theming without having to modify system files
// @version 1.1.2
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include *
// ==WindhawkMod==
// @id all-resource-redirect-experimental
// @name All Resource Redirect - Experimental
// @description Define alternative files for loading resources (e.g. instead of imageres.dll) for simple theming without having to modify system files
// @version 1.0
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include *
@m417z
m417z / early-create-remote-thread-test.wh.cpp
Last active February 12, 2024 20:03
Windhawk mod: A test of CreateRemoteThread called right after NtCreateUserProcess
// ==WindhawkMod==
// @id early-create-remote-thread-test
// @name Early CreateRemoteThread test
// @description A test of CreateRemoteThread called right after NtCreateUserProcess
// @version 0.1
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include cmd.exe
@m417z
m417z / StartResources.xbf
Created December 19, 2023 18:47
Start menu-related XAML resources extracted from C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\resources.pri, Windows 11 version 22H2 (OS Build 22621.2861)
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:StartMenu="using:StartMenu"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
x:Class="StartMenu.StartResources">
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
// ==WindhawkMod==
// @id explorer-features-test
// @name Explorer features test
// @description Enjoy experimenting
// @version 0.1
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
// @homepage https://m417z.com/
// @include explorer.exe
// ==WindhawkMod==
// @id -windhawk-load-symbols-self-fix
// @name Windhawk load symbols self fix
// @description Fix Windhawk symbol loading for 32-bit apps
// @version 0.1
// @author m417z
// @include *
// @architecture x86
// ==/WindhawkMod==
@m417z
m417z / mod.wh.cpp
Created June 26, 2023 17:58
A Windhawk mod to print all SetWindowsHookExW calls
// ==WindhawkMod==
// @id print-setwindowhookexw-calls
// @name Your Awesome Mod
// @description The best mod ever that does great things
// @version 0.1
// @author You
// @github https://github.com/nat
// @twitter https://twitter.com/jack
// @homepage https://your-personal-homepage.example.com/
// @include *