Creates a new custom catalog in the Windows Search indexer and returns a reference to it.
HRESULT CreateCatalog( [in] LPCWSTR pszCatalog, [out] ISearchCatalogManager **ppCatalogManager );
- pszCatalog [in]
Name of catalog to create. Can be any name selected by the caller, must contain only standard alphanumeric characters and underscore.
- ppCatalogManager [out]
On success a reference to the created catalog is returned as an ISearchCatalogManager interface pointer. The Release() must be called on this interface after the calling application has finished using it.
HRESULT indicating status of operation:
Catalog did not previously exist and was created. Reference to catalog returned.
Catalog previously existed, reference to catalog returned.
FAILED HRESULT: Failure creating catalog or invalid arguments passed.
Called to create a new catalog in the Windows Search indexer. After creation, the methods on the returned ISearchCatalog manager can be used to add locations to be indexed, monitor indexing process, and construct queries to send to the indexer and get results. See the “Managing the Index” documentation for more info: http://msdn.microsoft.com/en-us/library/bb266516(VS.85).aspx
Minimum supported client
|Windows 8 [desktop apps only]|
Minimum supported server
|Windows Server 2012 [desktop apps only]|