ISchemaProvider::Localize method (structuredquery.h)

Localizes the currently loaded schema for a specified locale.

Syntax

HRESULT Localize(
  [in] LCID                    lcid,
  [in] ISchemaLocalizerSupport *pSchemaLocalizerSupport
);

Parameters

[in] lcid

Type: LCID

The locale to localize for.

[in] pSchemaLocalizerSupport

Type: ISchemaLocalizerSupport*

Pointer to an ISchemaLocalizerSupport object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Before this method is called, the loaded schema should typically be a schema that is not localized, such as the one in %SYSTEMROOT%\System32\StructuredQuerySchema.bin. This method makes the loaded schema suitable for parsing queries in the specified locale, using the object specified in the pSchemaLocalizerSupport parameter. The localized schema can then be saved into a schema binary by calling the ISchemaProvider::SaveBinary method.

Most applications should use CreateLoadedParser to obtain a query parser loaded with a localized schema, instead of using this method explicitly.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header structuredquery.h
Redistributable Windows Desktop Search (WDS) 3.0