ISearchQueryHelper::get_QueryContentLocale Method
Gets the language code identifier (LCID) for the query.
Syntax
HRESULT get_QueryContentLocale( LCID *plcid );
Parameters
- plcid
[out, retval] Receives a pointer to the locale identifier used.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The locale identifier has the components necessary to uniquely identify one of the installed system-defined locales. The locale retrieved is used for word breaking, normalizing, and stemming the string values extracted from the query string. If the locale identifier was not set with ISearchQueryHelper::put_QueryContentLocale, the active input locale is retrieved.
The DSearch code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to create a class for a static console application to query Windows Search using the Microsoft.Search.Interop assembly for ISearchQueryHelper.
See Also