IQueryParserManager::CreateLoadedParser Method
Creates a new instance of the query parser. This instance of the query parser is loaded with the schema for the stated catalog and is localized to a specified language. All other settings are initialized to default settings.
Syntax
HRESULT CreateLoadedParser( LPCWSTR pszCatalog, LANGID langidForKeywords, REFIID riid, void **ppQueryParser );
Parameters
- pszCatalog
[in] The name of the catalog to use. Permitted values are "SystemIndex" and an empty string (for a trivial schema with no properties).- langidForKeywords
[in] The LANGID used to select the localized language for keywords.- riid
[in] The interface ID of the desired interface, such as IQueryParser.- ppQueryParser
[out, retval] Returns a pointer to the newly created parser. The calling application must release it by invoking its IUnknown::Release method.
Return Value
Returns S_OK if successful, or an error value otherwise.