Block SMB Quick Access
Prevents SMB/UNC network paths from being added to Quick Access in Windows Explorer
Author: Townrain
Prevents SMB/UNC network paths (\\server\share) from being added to Quick Access
in Windows Explorer. Local paths continue to work normally.
Features
- Selective blocking: Only blocks SMB/UNC network paths, local paths work normally
- Comprehensive SHARD support: Handles all SHARD types (PATHA, PATHW, PIDL, SHELLITEM, LINK, APPIDINFO, APPIDINFOIDLIST, APPIDINFOLINK)
- UNC priority: Uses
SLGP_UNCPRIORITY to correctly detect mapped drive letters
- Silent operation: Runs in background without UI
How it works
The mod hooks the SHAddToRecentDocs function in shell32.dll. When Explorer calls
this function to add a file to Quick Access, the hook checks if the path is a UNC
network path (starts with \\). If it is, the call is silently dropped. Otherwise,
the original function is called normally.
Requirements
- Windows 10 or Windows 11 (64-bit)
- Windhawk 1.4 or newer
Known limitations
- Does not block paths added via other mechanisms (e.g., registry manipulation)
- Some virtual folder PIDLs may not resolve to paths and will be allowed through
Troubleshooting
If the mod doesn't seem to work:
- Enable debug logging in Windhawk settings (Settings > Advanced > Debug logging)
- Check Windhawk debug logs for
[NOSMB] entries
- Verify the mod is enabled for explorer.exe in Windhawk settings
- Restart Explorer or log out/in after enabling the mod