ISearchManager::GetCatalog Method

Retrieves a catalog by name and creates a new ISearchCatalogManager object for that catalog.


HRESULT GetCatalog(      
    LPCWSTR pszCatalog,
    ISearchCatalogManager **ppCatalogManager


  • pszCatalog
    [in]  The name of the catalog to be retrieved.
  • ppCatalogManager
    [out, retval]  Receives the address of a pointer to the ISearchCatalogManager object that is named in pszCatalog.

Return Value

Returns S_OK if successful, or an error value otherwise.


Currently Microsoft Windows Desktop Search (WDS) 3.0 supports only one catalog and it is named SystemIndex.

The ReindexMatchingUrls code sample, available on Code Gallery and the Windows 7 SDK, demonstrates ways to specify which files to re-index and how.