ISearchManager2 interface (searchapi.h)
Enabled applications to create and delete custom catalogs in the Windows Search indexer
Inheritance
The ISearchManager2 interface inherits from ISearchManager. ISearchManager2 also has these types of members:
Methods
The ISearchManager2 interface has these methods.
ISearchManager2::CreateCatalog Creates a new custom catalog in the Windows Search indexer and returns a reference to it. |
ISearchManager2::DeleteCatalog Deletes an existing catalog and all associated indexed data from the Windows Search indexer. |
Remarks
ISearchManager interface ref: ../searchapi/nn-searchapi-isearchmanager.md Managing the Index ref: /windows/win32/search/-search-3x-wds-mngidx-overview
The new functionality is exposed through the new ISearchManager2 interface. Apps can call QueryInterface on the existing ISearchManager interface to get the new interface. On older versions of Windows where this functionality does not exist the QueryInterface call will fail, and not return the new interface. The existing ISearchManager interface can be used unchanged.
Errors are returned through HRESULTs returned on each method in the standard way COM. ISupportErrorInfo / IErrorInfo are not supported. No exceptions are thrown.
These methods can be called in any COM apartment, and the behavior will not be impacted by the type of apartment. These APIs is safe to call on a UI thread but this is not recommended practice as the APIs involve cross-process IO and other potentially long-running operations.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | searchapi.h |