EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

ISearchManager2::CreateCatalog method

Creates a new custom catalog in the Windows Search indexer and returns a reference to it.

Syntax


HRESULT CreateCatalog(
  [in]   LPCWSTR pszCatalog,
  [out]  ISearchCatalogManager **ppCatalogManager
);

Parameters

pszCatalog [in]

Type: LPCWSTR

Name of catalog to create. Can be any name selected by the caller, must contain only standard alphanumeric characters and underscore.

ppCatalogManager [out]

Type: ISearchCatalogManager**

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.

Return value

Type: HRESULT

HRESULT indicating status of operation:

Return codeDescription
S_OK

Catalog did not previously exist and was created. Reference to catalog returned.

S_FALSE

Catalog previously existed, reference to catalog returned.

 

FAILED HRESULT: Failure creating catalog or invalid arguments passed.

Remarks

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

See also

ISearchManager2

 

 

Добавления сообщества

ДОБАВИТЬ
Показ:
© 2014 Microsoft