query.dll Error in Windows 10 and 11: Windows indexed query errors

An app cannot run an indexed file query and names query.dll, while manual folder browsing still works.
What this DLL does
This Windows filename is associated with query interfaces used by some search or indexing clients.
Start with this check
Check if Windows can locate a known file in the same folder and whether that folder is in the supported indexing scope. Copy the exact client error.
Write down the exact message, the time, and what you were doing. If the application closes, open View reliability history from Start, select the matching failure, and copy its technical details. An exception code, full module path and application version help identify the next test.
Choose the appropriate repair
Repair an app that alone fails. If Windows results are missing too, follow supported indexing troubleshooting and allow any approved rebuild to finish before comparing results.
Use Microsoft’s application repair options when only one program fails and its publisher supports those options. If multiple built-in Windows features fail and there are signs of Windows system file corruption, follow Microsoft’s DISM and System File Checker instructions in that order. Use trusted Windows or publisher packages when restoring DLLs.
Verify the result
Repeat the original query and verify the expected result under the same Windows account. Keep the original error information until the same operation also works after a restart.
The DLL Errors & Fixes Library includes related troubleshooting, including propsys.dll. Reference: Microsoft’s Windows Search documentation.