
For example, copy the source file SmpFilt.cxx to a file named SmpFilt.smp. To filter files and submit queries using the sampleĬreate one or more files to filter. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex Self-register the filter by entering, at the command-line prompt, "regsvr32.exe %windir%\System32\SmpFilt.dll".Įnable automatic registration of the filter by adding it to the MULTI_SZ value of the DLLsToRegister entry in the registry under the following key. Open a command window and change the directory to the source path of the sample.īuild the filter DLL by entering, at the command-line prompt, "nmake".Ĭopy the filter DLL file SmpFilt.dll to your %windir%\System32 directory. Set the Lib environment variable to "D:\mssdk\Lib %Lib%" and the Include environment variable to "D:\mssdk\Include %Include%", where D: is the drive on which you installed the Platform SDK.Ĭorrectly set the CPU environment variable to, for example, "i386". Source: mssdk\samples\winbase\indexing\smpfilt\ It is the simplest sample of an IFilter implementation included in the Indexing Service sample code. It accepts as input only single-byte-character text files and not multibyte-character or UNICODE text files.

smp), using the ANSI code page of the current thread, and outputs UNICODE text for the current locale. The SmpFilt sample is an example IFilter implementation that reads an unformatted text file (with the extension. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8.
