Block Start Menu and Hosts
Kills existing selected UI components on mod init and blocks any future launches.
Author: Exiled Eye
This Windhawk mod actively terminates existing instances of specific Windows host processes upon loading and intercepts process creation to prevent them from launching again in the future.
This way the mod ensures that unused selected UI components and their process are actually not running instead of simply hiding them.
Features
You can individually toggle the blocking of the following processes dynamically in the mod settings:
- StartMenuExperienceHost.exe -> The main Start Menu UI and process ("WIN" key).
- SearchHost.exe -> The Search Menu UI and process ("WIN + S" and "WIN+ Q" shortcut) Note: may cause issues within folder search.
- TextInputHost.exe -> The Emoji and Clipboard UI and process ("WIN + ." and "WIN + V" shortcuts).
- ShellHost.exe -> The Action Center UI and process ("WIN + A" shortcut).
- ShellExperienceHost.exe -> The Calendar and Notifications UI and process ("WIN + N" shortcut).
- MicrosoftStartFeedProvider.exe -> The Start Menu process, which provides news, weather, stock quotes, interest cards, recommended and etc.
- WidgetBoard.exe -> The Widgets board UI and process ("WIN + W" shortcut).
- WidgetService.exe -> The Widgets board background data, content and service infrastructure process.
How it works
The mod injects into explorer.exe, svchost.exe, and ShellHost.exe.
Upon init, it kills any active instances of the selected hosts.
It then places a hook on the CreateProcessInternalW function: If the system attempts to launch any of the blocked .exe (example: user press WIN key), the hook intercepts the request and returns an ERROR_ACCESS_DENIED flag, preventing the launch.
For ShellHost.exe specifically, the mod injects directly into it and calls ExitProcess on init if blocking is enabled, since ShellHost respawns itself and cannot be kept dead by the hook alone.