Using Visual C++ with Indexing Service APIs

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

When you use Indexing Service APIs with Visual C++, you typically have a choice of using the OLE DB Provider API or the OLE DB Helper API. For the fastest execution, you usually will use the OLE DB Provider API. For information about using it with Indexing Service, see Using OLE DB Provider for Indexing Service.

For easier programming, you usually use the OLE DB Helper API or a combination of that API and the OLE DB Provider API. With the OLE DB Helper API, you need to include the header file Ntquery.h in any source files in which you use the Helper functions. You also need to link the Ntquery.lib library with your application.

When you use any programming elements from the OLE DB Provider API, you may also need to include the following header files.

  • ledberr.h
  • ledb.h
  • mdtree.h

Secure Code Practices