Disappearing Tray Icons Fix
Fixes missing system tray icons by broadcasting TaskbarCreated when the taskbar initializes.
Author: Alchemy
Fixes system tray icons going missing in Windows 11 by rebroadcasting the
TaskbarCreated window message.
The Problem
Windows 11 has a known issue where system tray icons can randomly vanish (not
just hide in the overflow area). This happens because:
- Apps register tray icons by calling
Shell_NotifyIcon
- When
explorer.exe restarts or the shell initializes, it broadcasts
TaskbarCreated to tell apps to re-register their icons
- Some apps miss this message due to race conditions, sleep/wake cycles, or
timing issues
- Result: icons vanish completely with no way to recover except restarting
the app
The Solution
This mod detects when the taskbar is created and rebroadcasts the TaskbarCreated
message after a defined delay, giving apps another chance to register their tray
icons. This mod can also run a passive rebroadcast to catch bizarre instances of this
occurring while the taskbar is running.
Processes can be excluded from receiving the rebroadcast by adding their executable
names to the excluded processes setting.
GDI Leak Fix
When passive broadcast is enabled, this mod hooks icon creation APIs to track and
destroy icons created during each broadcast cycle, preventing GDI handle leaks that
would otherwise crash explorer.exe.
Only the explorer.exe instance that owns the taskbar will activate this mod.