Skip to content

Submission checklist

Michael Maltsev edited this page Nov 21, 2026 · 2 revisions

These are the items that come up most often in reviews of new mods and mod updates. Going through them before /ready-for-reviewer usually saves a review round. Not every item applies to every mod, and the AI review checks many of them too. If you have a good reason to deviate from an item, explain it in the pull request.

Before you submit

  • Check for similar mods. Search the catalog. If a mod already does much the same thing, read Overlap with existing mods before submitting.
  • Test on a default setup. Reviewers test on the latest Windows release with default settings, stock Explorer and no other mods or customization tools. A mod that works only with your setup will likely be sent back.
  • Test loading on process start. Enable the mod, then restart the target process (for Explorer, restart explorer.exe) or reboot. A mod that only works when it's enabled while the process is already running isn't ready.
  • Test with display scaling and multiple monitors. 125% and 150% scaling are the default on many laptops, and attaching a monitor often changes the scaling. You can change the scaling in Windows settings even with a single monitor.
  • Test settings and disabling. Change each setting while the mod is running, and turn options back off: the original look and behavior should come back. Disable the mod and check the same.
  • Test with the stable Windhawk release, not only the 2.0 alpha. Most users run the stable release. Mods that require Windhawk 2.0 can't be accepted until 2.0 is stable. Settings annotations added in 2.0 need a fallback for the stable release.
  • Test 32-bit processes if the mod targets them, for example with @include *. 32-bit hooks fail in their own ways, such as a wrong calling convention.

The pull request

  • A single file. The pull request adds or changes exactly one file, mods/<mod-id>.wh.cpp. Host images and other files elsewhere.
  • Keep the template. For a new mod, fill in "Mod authorship". For an update, fill in the changelog.
  • A changelog for users. List what changed since the released version, as a markdown list. Leave out implementation details, the version number and the ## Changelog heading.
  • A passing CI check. Fix CI errors and merge conflicts before /ready-for-reviewer; the check's log says what's wrong. A pull request that fails the check isn't a valid submission. Some checks only ask for a manual review, because what they flag is usually a mistake but can be right. That's fine when you have a reason and nothing else fails.
  • The AI review first. Comment /ai-review, fix the findings and repeat. Then comment /ready-for-reviewer. For each finding you leave unaddressed, add a short note explaining why. Unexplained findings are the most common reason a pull request is sent back. See Mod submission review process.
  • One pull request per change. Push fixes to the same pull request instead of opening new ones, and convert it to a draft while it isn't ready. Use /ready-for-reviewer instead of tagging the reviewer.
  • Answers in your own words. You're responsible for the code, including code an AI wrote, so be ready to explain how it works and why. When you reply that a suggested approach didn't work, post the code you tried.

Metadata and readme

  • The mod id is permanent. It can't be changed after the first submission. A new mod doesn't need code that migrates settings or data from earlier versions.
  • The name and description say what the mod does, in terms users understand, not how it's implemented. The name should match the mod's scope: a generic name like "Taskbar tuner" doesn't fit a mod that makes two specific changes.
  • A single author. @author is the submitter. Credit others in the readme.
  • A screenshot or GIF for any visual change. Images must be hosted on i.imgur.com or raw.githubusercontent.com. Images are archived when the mod is published, so to replace an image in an update, give the new image a new URL. Check that the image isn't broken and shows the mod on a normal setup.
  • A readme for users. Explain what the mod does, how to use it and what its limitations are. Explain terms not everyone knows. Leave out development history, bugs fixed during development, the full license text (put it in a code comment) and implementation details. Windhawk's markdown doesn't support <details>.

Settings

  • No "enabled" setting. Windhawk's own toggle unloads the mod completely. A setting that turns the mod off leaves it loaded without doing anything.
  • No logging setting. Windhawk turns Wh_Log output on and off for each mod, and Wh_Log costs nothing while logging is off.
  • No settings without effect. Remove settings that aren't read, or that make no visible difference.
  • Grouped settings. Group related settings with nested settings instead of name prefixes or title-only entries. Do it in the first release: nesting changes the setting keys, so adding it later resets users' settings.
  • The right types. Use a number setting for numbers. $options works only with strings.
  • Changes apply right away. Handle Wh_ModSettingsChanged so that users don't have to restart the target process.

Where the mod runs

  • A tool mod if the mod doesn't need to be inside a process. A mod that doesn't hook a specific process, for example one that uses only public APIs, window events, hotkeys or its own windows, should run in a dedicated process instead of explorer.exe. A crash or a hang in it then doesn't take down the shell. See Mods as tools. Copy the launcher code from the wiki without changes, so that it's easy to review and to update. Use the WhTool_ModInit family of names, which Windhawk 2.0 uses to detect tool mods, and don't set @architecture.
  • Only the processes the mod needs. Don't use @include * unless the mod is meant for all processes. Use the file name (@include explorer.exe), not a full path. If the mod only needs the shell, such as the taskbar or the desktop, return FALSE from Wh_ModInit in other explorer.exe processes. In general, return FALSE when there's nothing for the mod to do in a process. See Injection targets and critical system processes.
  • @architecture only when needed. Without it, the mod runs in both 32-bit and 64-bit processes. For a target that is only 64-bit, such as explorer.exe on Windows 11, use x86-64, which includes ARM64. x64-specific code, such as offsets or assembly, needs an ARM64 version, and Winbindex has the ARM64 binaries. If ARM64 can't be supported, use amd64.

Mod lifetime

Mod lifetime shows when Windhawk calls each callback, and on which thread.

  • Callbacks run on threads the mod doesn't own. Wh_ModInit and Wh_ModAfterInit run on the target's main thread when the mod loads as the process starts, and on the Windhawk engine thread when the mod is enabled in a running process. The other callbacks always run on the engine thread. Nothing processes window messages for the mod on these threads, so windows, timers, low-level hooks, out-of-context SetWinEventHook hooks and RegisterHotKey hotkeys created there don't work. Create them on a thread the mod owns that runs a message loop, or on one of the target's UI threads. A typical sign is a feature that works when the mod loads as the process starts, but not when it's enabled in a running process.
  • Init and uninit pairs on the same thread. Wh_ModInit and Wh_ModUninit may run on different threads. Calls that must be paired on one thread, such as CoInitializeEx and CoUninitialize, or SetWinEventHook and UnhookWinEvent, belong in the same callback or on a thread the mod owns.
  • A clean unload. Windhawk unloads the mod as soon as Wh_ModUninit returns, so by then no mod code may be running or scheduled to run. Signal each thread the mod started and wait for it to exit, kill timers, remove event and window hooks (UnhookWinEvent, UnhookWindowsHookEx) and window subclasses, destroy the mod's windows, and unregister its window classes: a class left registered points to the unloaded code, and the next load fails to register it. Don't keep the mod loaded instead, by pinning its module or holding an extra reference to it. Test by disabling and enabling the mod while the target process runs.
  • Correct global objects. Globals with destructors can hang or crash the process when it exits. Use [[clang::no_destroy]] as Global objects and process shutdown describes.

Windhawk principles

  • No persistent changes. Disabling or removing a mod should leave the system as it was. So the mod must not change anything that's stored and outlives it: registry values in any hive, including registrations under HKCU\Software\Classes (file types, verbs, COM classes, shell folders), settings saved to the user profile (SystemParametersInfo with SPIF_UPDATEINIFILE, the theme, the wallpaper), files outside the mod's storage (shortcuts, desktop.ini), and scheduled tasks, services or startup entries. Undoing the change on unload isn't enough: the change stays whenever that doesn't run, for example after a crash or a power loss. The Windhawk storage APIs, and the user's own files that the mod exists to act on, are fine.
  • Read hooks instead of writes. To change a value that a program reads, hook the read functions, such as RegQueryValueExW and RegGetValueW, and return the value you need. Registrations can be served the same way, as Steam Games in Explorer and Restore the classic Personalization and other CPLs do. Volatile registry keys still persist until reboot. If a write is unavoidable, explain why in the pull request, and say in the readme what the mod writes and what may remain.
  • Network access only with approval. A mod that contacts an external server, for example to fetch data, call a web API or download files, needs the reviewer's approval, even if the user chooses the server or the feature can't work without it. Say in the pull request what the mod contacts and why. In the readme, say which hosts the mod contacts, what it sends, when, and which setting turns it off, if there is one.
  • Data stored with Windhawk's APIs. Use Wh_SetIntValue, Wh_SetStringValue and the like, or files in Wh_GetModStoragePath. Don't hardcode Windhawk's folders or registry keys, such as %ProgramData%\Windhawk or HKCU\Software\Windhawk. They don't exist in the portable version.
  • No XAML Diagnostics outside styler mods. Using it makes the mod incompatible with the styler mods, some of the most popular mods, and with third-party tools that also use it. There's usually a better way, even if the mod then needs the target process to be restarted: hook a function of the app that creates or receives the element, or the creation of its window, and walk the element tree from there. Explorer Command Bar (review discussion) and Agenda in Calendar View both work this way.
  • No crash swallowing. Don't use SetUnhandledExceptionFilter, vectored exception handlers or __try to hide crashes. They hide bugs and stop Windows from handling the crash, so there's no event log entry and no dump. Fix the crash instead.
  • No reliance on Windhawk internals. Don't use WH_EDITING or InternalWh* functions, and don't assume how Windhawk launches its processes. In Windhawk 2.0, tool mods run in windhawk-mod.exe, so to find windhawk.exe, take the folder of the current process and append the file name.

Symbols and hooks

  • WindhawkUtils::HookSymbols used directly, with WindhawkUtils::SYMBOL_HOOK arrays. Custom wrappers break symbol caching and the tools that read symbols from the mod source.
  • One HookSymbols call per module. Each call resolves symbols again, which is the slow part, so put all the hooks of a module in one array.
  • Undecorated symbol names, as Windhawk Symbol Helper shows them. Remove decorated names (?Function@Class@@...), __ptr64 variants and noUndecoratedSymbols. Decorated symbols aren't in the online symbol cache, so users would have to download the full PDB file.
  • Plain symbol strings. Write symbol names as plain string literals, without macros, so that the tools that extract them for caching can read them.
  • No symbols when there's a simpler option. Exported functions, including those exported only by ordinal, need no symbols. Some modules, such as Windows.UI.Xaml.dll, have very large PDB files. Don't search all of a module's symbols at runtime: the whole PDB file would be parsed on each process launch.
  • Late-loaded modules handled with a LoadLibraryExW hook. If the target module may not be loaded yet, check whether it's already loaded, and hook LoadLibraryExW in kernelbase.dll for later loads. Don't use LdrRegisterDllNotification or polling.
  • Subclassing with WindhawkUtils::SetWindowSubclassFromAnyThread. Never replace GWLP_WNDPROC, which conflicts with other mods.
  • Regular hooks, not vtable patching. Patching a vtable can crash when several mods hook the same function. Hook the function the vtable points to.
  • A reliable way to find the taskbar. FindWindow(L"Shell_TrayWnd", ...) can return a fake window that some customization tools create (details). Enumerate the windows of the current process instead, as existing mods do.

Performance

  • Events, not polling. A timer that keeps running while the computer is idle costs energy and battery. Use events such as SetWinEventHook with EVENT_SYSTEM_FOREGROUND, window messages or system notifications. If polling is unavoidable, poll only while it's needed.
  • No low-level keyboard or mouse hooks (WH_KEYBOARD_LL, WH_MOUSE_LL) unless necessary: they run on every input event in the system. For hotkeys, use RegisterHotKey, or hook Explorer's hotkey handling as Classic Window Switcher does, which also works while an elevated window is in the foreground.
  • Higher timer resolution only while needed. Call timeBeginPeriod only for the duration of an animation, not for the life of the process.
  • No focus hacks. Avoid AttachThreadInput and simulated key presses for taking the foreground (why).

Code

  • Readable formatting. The reviewer reads every line. Don't write very long lines or pack several statements into one line (the CI check rejects both). A formatter such as clang-format with the repository's .clang-format takes care of it.
  • Embedded data as text when possible. Keep embedded strings and data readable, not base64-encoded, so that they can be reviewed.
  • Only the mod. Remove test harnesses, standalone build code, dead code and debugging leftovers.
  • No fragile tricks. Avoid code that works only with one specific version of a Windows component, probing memory to find data, and hand-written assembly. Prefer symbols, exported functions, Wh_Disasm, or the approach existing mods use.
  • Only the compiler options needed. Windhawk already sets _WIN32_WINNT and WINVER to Windows 10, and uses C++23 by default, so don't set them. Add the libraries the APIs need, for example -lole32 for CoInitializeEx (the API documentation lists the library). Fix warnings instead of silencing them, for example by defining WIN32_LEAN_AND_MEAN in @compilerOptions instead of #pragma clang diagnostic ignored.