Explorer Status Bar Metadata
Appends rich metadata (dimensions, date, type, duration, bitrate, fps) to Explorer's status bar. Zero polling — purely reactive, path-keyed cache.
Author: VitalS
Appends file metadata to the Windows Explorer status bar when a single file
is selected: dimensions, modification date, file type, duration, bitrate, fps.
How it works
- No timers, no polling. Metadata is computed only when the selected file changes.
- Path-keyed LRU-style cache (1000 entries). Same file = instant return, zero COM calls.
- Hooks
PSFormatForDisplayAlloc in propsys.dll — the exact function Explorer calls
to format the file size for the status bar. Language-independent, no text matching.
- Filter:
key == System.Size AND SHELL32.dll appears in the first 5 call stack
frames (status bar path), but NOT explorerframe.dll (Details column — skipped).
- Compatible with "Better file sizes in Explorer details" — multi-frame stack scan
handles chained hooks transparently.
- Custom binary parsers for formats the Windows Property System does not index:
SVG, HDR, EXR, TIFF/TX (LE+BE), TGA, PSD/PSB, WebM/MKV (EBML).
Settings
- Network drives — disabled by default. Can freeze Explorer on slow networks.
- Removable drives — enabled by default. Disable if you use slow USB media.
- Cache evict count — how many old entries to drop when the 1000-entry limit is hit.
Changelog
v1.4.0
- Replaced DrawTextW/GetTextExtentPoint32W hooks with PSFormatForDisplayAlloc hook
(language-independent, no text matching, no "selected"-string false positives)
- SHELL32.dll stack filter (5 frames) precisely identifies the status bar call
- Selection path discovery uses IFolderView2::GetSelection — same-thread, no
CWM_GETISHELLBROWSER broadcast to arbitrary windows
- CWM_GETISHELLBROWSER is now sent only to windows of known safe classes:
CabinetWClass and ShellTabWindowClass
- SafeGetShellBrowser: thread-ID guard replaced with process-ID guard.
PSFormatForDisplayAlloc fires on a shell worker thread (not the GUI thread),
so the thread-ID check always failed and GetSelectedFilePath always returned
empty. Process-ID check is sufficient and works correctly from any thread.
- Added Wh_Log to Wh_ModInit/Wh_ModUninit for basic injection diagnostics
- Added Wh_ModSettingsChanged so settings take effect without restarting Explorer
- Cache upgraded from FIFO to true LRU: cache hits now move the entry to the
back of the eviction queue, keeping frequently-accessed files safe from eviction
- SVG parser rewritten with ExtractAttribute helper: tolerant of whitespace
around '=' and both quote styles (viewBox = "...", width='100px', etc.)
- Added PSD/PSB binary parser (width/height from fixed 26-byte header)
- File type moved to last position (right edge) for all file types
- CleanTypeString strips spurious ".<digits>" suffix from type names (Windows
shell quirk: "Adobe Photoshop Image.27" → "Adobe Photoshop Image")
- PSD/PSB type label overridden to "Adobe Photoshop File" for consistency
- Removed cross-window fallback (Strategy 3): GetSelectedFilePath is strictly
scoped to the root window identified by GetGUIThreadInfo / GetForegroundWindow
— no risk of reading a selection from a different Explorer window
v1.3.0