VOIDSearch
A drop-in replacement for Windows Search powered by VoidTools Everything.
Every Windows search entry point is redirected to a native Win32 application that queries Everything’s index and shows results instantly — and programs that ask Windows Search in code get Everything’s results too:
| Entry point | What VOIDSearch does |
|---|---|
search:, ms-search:, ms-windows-search: URIs |
Opens VOIDSearch with the query pre-filled |
| Win+S | Suppressed by a tiny hook (hook.exe); VOIDSearch opens instead |
voidsearch.exe --stdout |
Runs a search with no window and prints full paths to stdout — any calling app reads the results directly |
OLE DB / ADO / .NET (Provider=Search.CollatorDSO) |
wsprov.dll sits under Windows’ own provider CLSIDs and answers SQL queries from Everything |
Features
- Instant results — Everything indexes the full NTFS journal; results appear as you type
- Rich result list — file icon, name, full path, size, date modified; virtual ListView handles 100 000+ results without lag
- Full interaction — double-click to open, right-click for Open / Open containing folder / Copy path / Copy filename
- Inline results for any app —
voidsearch.exe --stdout "<query or search: URI>"prints full paths (UTF-8, one per line). Exit codes:0success (including no matches),2Everything unavailable,3nowhere to write output - Self-setup — if Everything is not installed, the app’s banner button becomes “Download & install Everything”: it downloads the latest stable installer from voidtools.com (live progress bar, correct 64-/32-bit build chosen automatically), runs it silently, starts Everything, and connects — no other window or step needed
- Drop-in provider — no change on the caller’s side;
SELECT ... FROM SYSTEMINDEX ...just works - Win+S takeover — a tiny background hook helper (< 1 MB RAM)
- Clean uninstall — the Inno Setup uninstaller removes all registry keys and restores Windows’ own registrations
- Windows XP through 11 — see Operating-system support
Operating-system support
| OS | How |
|---|---|
| Windows 11 / 10 / 8 / 7 | VOIDSearch-Setup-x64.exe (or -x86.exe on 32-bit Windows) |
| Windows XP (SP2+) / Vista | Binaries are XP-compatible; install manually, see below |
- All executables and the provider DLL are built against the XP SDK surface (
_WIN32_WINNT=0x0501); their import tables contain only classic system DLLs, no Vista+ API sets. Vista+ features (per-monitor DPI, Win10 DPI notifications) are loaded dynamically and simply don’t activate on older systems. - The installer requires Vista or later: Inno Setup 6.3 dropped XP. On XP, install by hand:
- Copy
build32\bin\voidsearch.exe,build32\bin\hook.exe,build32\bin\regtake.exeandlib\Everything32.dllinto a folder (e.g.C:\Program Files\VOIDSearch) - Run
regtake.exe "C:\Program Files\VOIDSearch\voidsearch.exe"to register the protocol handlers - Start
hook.exeand add it toHKCU\Software\Microsoft\Windows\CurrentVersion\Runfor the Win+S takeover - Optional:
regtake.exe --provider "<folder>"registers the OLE DB provider (the 32-bitwsprov.dllis what 32-bit XP apps need) - Install and run Everything 1.4 — Everything 1.5 needs a newer Windows
- Copy
- On XP, use the 32-bit build (
build32\bin). The x64 build targets XP Professional x64 in principle, but Everything itself must exist for that architecture.
Project structure
VOIDSearch/
├── src/
│ ├── main.c WinMain, DPI setup, --stdout mode, startup sequence
│ ├── ui.c Win32 search window (edit + virtual ListView + status bar)
│ ├── everything_query.c Dynamic loader for Everything64/32.dll
│ ├── args_parse.c URI / command-line argument decoder
│ ├── wsql.c Windows Search SQL → Everything syntax translator (unit-tested)
│ └── regtake.c Protocol-handler + provider registration, backup & restore
├── src/wsprov/ wsprov.dll: OLE DB provider + Search Manager replacement
│ ├── dll.c oledb.c mgr.c wsprov.h wsprov.def
├── include/ SDK and internal headers
├── hook/hook.c WH_KEYBOARD_LL Win+S interceptor (hook.exe)
├── test/
│ ├── test_eq.c URI parser + SQL translator unit tests, live SDK query
│ └── test_prov.c Drives wsprov.dll through raw OLE DB, no registration
├── installer/
│ ├── voidsearch.iss Inno Setup 6 script (x64) → VOIDSearch-Setup-x64.exe
│ └── voidsearch-x86.iss Inno Setup 6 script (x86) → VOIDSearch-Setup-x86.exe
├── res/
│ ├── make_icons.py Regenerates voidsearch.ico (pure-stdlib, SDF-rendered)
│ ├── voidsearch.ico App icon (16–256 px, BMP entries — XP-readable)
│ ├── voidsearch.rc hook.rc wsprov.rc Version info + icons per binary
│ ├── voidsearch_manifest.rc voidsearch.manifest ComCtl32 v6 + DPI (embedded by MinGW build via RC)
├── lib/ Everything SDK DLLs (see lib\README.txt)
├── CMakeLists.txt
├── build.bat One-click build (MSVC + optional ISCC)
└── README.md
Prerequisites
| Tool | Notes |
|---|---|
| Windows SDK surface | XP+ (_WIN32_WINNT=0x0501 is set by CMake) |
| MSVC VS 2019+ or w64devkit / MinGW-w64 | Both toolchains are supported |
| CMake 3.16 | |
| VoidTools Everything | Must be installed and running on the target machine |
| Everything SDK DLL | Everything64.dll / Everything32.dll in lib\ (see lib\README.txt) |
| Inno Setup 6.3+ | Only needed to build the installers (produces Vista+ installers) |
| Python 3 | Only needed to regenerate the icon (res\make_icons.py) |
Building
MSVC
build.bat
Auto-detects Visual Studio, configures CMake, builds all targets, and (if Inno Setup and the SDK DLLs are present) compiles the installers.
MinGW (w64devkit)
cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build && rem x64
cmake -B build32 -DCMAKE_BUILD_TYPE=Release && cmake --build build32 && rem x86
Binaries land in build\bin and build32\bin. The x64 build links Everything64.dll, the x86 build Everything32.dll; both load it dynamically from the executable’s own folder at runtime.
Icon
res\voidsearch.ico is generated from signed-distance functions, no image editor required:
python res\make_icons.py
Installers
ISCC installer\voidsearch.iss & rem x64
ISCC installer\voidsearch-x86.iss & rem x86
Requires lib\Everything64.dll (x64) and lib\Everything32.dll (x86). Output lands in Output\.
Running the tests
build\bin\test_eq.exe --test-parser & rem URI parser (10) + SQL translator (18) unit tests
build\bin\test_eq.exe "search:?q=x" & rem live query through the SDK
build\bin\test_prov.exe build\bin\wsprov.dll & rem provider DLL, raw OLE DB, no registration
--test-parser exits non-zero if any test fails, so it can gate a build script. Run the same for build32 to cover the 32-bit build.
Installation (Windows 7 and later)
Run Output\VOIDSearch-Setup-x64.exe (or the x86 installer on 32-bit Windows).
Installer tasks: 1. Copies the binaries and the matching Everything SDK DLL to %ProgramFiles%\VOIDSearch 2. Hook and replace Windows Search (on by default) — search:, ms-search:, ms-windows-search: handlers, the Win+S hook and its start-up entry 3. Disable Windows Search service (recommended) — stops and disables WSearch 4. Answer apps’ Windows Search queries with Everything (off by default) — registers wsprov.dll under Windows’ own CLSIDs for both the OLE DB provider (64- and 32-bit) and the Search Manager; uninstall runs regtake.exe --restore 5. Optionally launches hook.exe immediately — no reboot required
Verifying it works
# inline results for any calling app
& "C:\Program Files\VOIDSearch\voidsearch.exe" --stdout "readme"
# the protocol handlers open the VOIDSearch window
Start-Process "search:?q=readme"
# apps that query Windows Search in code get Everything's results
$c = New-Object -ComObject ADODB.Connection
$c.Open("Provider=Search.CollatorDSO;Extended Properties='Application=Windows'")
$rs = New-Object -ComObject ADODB.Recordset
$rs.Open("SELECT TOP 5 System.ItemPathDisplay FROM SYSTEMINDEX WHERE CONTAINS('readme')", $c)
while (!$rs.EOF) { $rs.Fields.Item(0).Value; $rs.MoveNext() }
$c.Close()
With the Windows Search service disabled, the OLE DB query returning rows is proof in itself that wsprov.dll answered from Everything.
Uninstalling
Use Add/Remove Programs (Settings → Apps → VOIDSearch → Uninstall). The uninstaller removes all files and registry keys written during install, terminates hook.exe, and restores Windows’ own provider registrations from HKLM\SOFTWARE\VOIDSearch\Backup (originals saved before the first change, including each key’s owner and permissions). To restore by hand (elevated):
"C:\Program Files\VOIDSearch\regtake.exe" --restore
To log the SQL that callers send to the provider, set HKCU\Software\VOIDSearch → WsprovLog (REG_SZ) to a log file path.
How it works
Protocol handler takeover
Windows dispatches search: URIs via HKCR\search\shell\open\command. The installer (through regtake.exe) writes voidsearch.exe "%1" there and for ms-windows-search: and ms-search:. A Start-menu search then fires search:?q=<text>, which launches VOIDSearch with the query pre-filled.
Win+S hook
hook.exe installs a WH_KEYBOARD_LL global hook. When it sees VK_S with a Windows key held it opens VOIDSearch and returns 1 from the callback, suppressing the original keystroke so Windows Search never fires. It only acts on matching key-down events, so it idles near 0% CPU.
--stdout mode
main.c parses --stdout, decodes the query with the same URI parser the protocol handler uses, runs it through everything_query.c, and writes the full paths as UTF-8 lines to standard output — no window is opened. Anything that can start a process and read its pipe gets the results inline.
Self-setup: download & auto-install of Everything
When EverythingInstalled() finds no Everything (neither the App Paths registry key nor the standard install folders), the banner button becomes Download & install Everything. A background thread then:
- Picks the installer for the operating system’s bitness (
_WIN64+IsWow64Process): the permanent voidtools aliasEverything.x64-Setup.exe/Everything.x86-Setup.exe, which always resolves to the latest stable release - Downloads it to
%TEMP%with WinHTTP (loaded dynamically — XP-safe, TLS 1.2 requested explicitly), streaming through a progress callback that drives the in-window progress bar - Runs it with
/S(NSIS silent install, default options: Everything service + run-on-startup) - Starts
Everything.exe -startupand re-inits the SDK connection, retrying on a 3-second timer
The download is abortable (closing the window cancels it) and every failure path restores the banner with an error code instead of leaving a stuck UI. test\test_dl.c (build\bin\test_dl.exe) drives the downloader standalone from a console.
Everything SDK integration
everything_query.c loads the SDK DLL dynamically via LoadLibrary, so the build has no hard build-time dependency and the app degrades to an error banner instead of crashing when Everything is absent. Results, attributes and paths come from the SDK in one synchronous IPC round trip.
Virtual ListView
The result list uses LVS_OWNERDATA mode: Windows asks for item data only for visible rows via LVN_GETDISPINFO, so the control handles millions of results with constant memory.
Windows Search SQL translator (wsql.c)
SELECT System.ItemPathDisplay FROM SystemIndex WHERE ... is translated to Everything’s search syntax. Covered: SCOPE/DIRECTORY, LIKE/= on name, path and folder, FileExtension, Size, DateModified/DateCreated, ItemType, Kind, CONTAINS/FREETEXT, AND/OR/NOT, TOP, ORDER BY, GROUP ON ... OVER (...). Predicates it doesn’t recognise are dropped, so callers get more results rather than none. Non-file scopes (e.g. mapi://) return no rows.
The provider registration replaces:
| Component | CLSID | Replaced by |
|---|---|---|
Search.CollatorDSO (OLE DB provider, 64- and 32-bit) |
{9E175B8B-F52A-11D8-B9A5-505054503030} |
wsprov.dll in-process |
| Search Manager | {7D096C5F-AC08-4F1F-BEB7-5C22C517CE39} |
wsprov.dll, hosted in dllhost.exe for out-of-process callers |
Known limitations
- Requires Everything to be installed and running; if it is merely not running, the banner offers to launch it, and if it is missing entirely the banner offers to download and install it (see above).
- Not covered: Explorer’s folder search box and the Start menu. With the Windows Search service disabled, Explorer runs its own non-indexed folder scan and never asks for either replaced component (tested). Outlook searches through MAPI.
CONTAINSmatches file names, not file contents.- Without
TOP(orDBPROP_MAXROWS) a query returns at most 10 000 rows. - On XP, the Win+S hook and Everything 1.4 apply; Everything 1.5 requires a newer Windows.
- Paths longer than 260 characters are truncated by the search code’s fixed buffers.
- The x86 installer offers the provider option only on 32-bit Windows: a 32-bit-only provider would break 64-bit apps’ registrations.
Credits
- VoidTools Everything — the actual search engine and SDK: https://www.voidtools.com
- Everything SDK © VoidTools, used per the terms at https://www.voidtools.com/support/everything/sdk/