The SearchEvents code sample demonstrates how to prioritize indexing events.
This topic contains the following sections.
|Windows||Windows 7, 8.1, or 10|
|Windows SDK||7.0 or greater|
Downloading the Sample
This sample is available in the following location.
For all versions of Windows, including Windows 7, it is recommended to download the samples directly from GitHub for the most up to date version.
Building the Sample
Open Windows Explorer and navigate to the SearchEvents project directory.
Double-click the icon for the Eventing.sln file to open the project in Visual Studio.
The sln file was created under an older version of Visual Studio, thus upgrading it will be required if you are running Visual Studio 2012 or newer. This will not impact the sample's behavior.
From the Build menu, select Build Solution.
Running the Sample
- Navigate to the directory that contains the new executable, using the Command Prompt window or Windows Explorer.
- At the command prompt, enter
Eventing.exe, or from Windows Explorer, double-click the icon for Eventing.exe.