ISchemaLocalizerSupport::Localize method (structuredquery.h)

Localizes keywords from an input string.

Syntax

HRESULT Localize(
  [in]          LPCWSTR pszGlobalString,
  [out, retval] LPWSTR  *ppszLocalString
);

Parameters

[in] pszGlobalString

Type: LPCWSTR

Pointer to a null-terminated Unicode string to be localized. It may be in one of two forms: (1) a set of keywords separated by the vertical bar character (Unicode character code 007C) (for example "date modified|modified|modification date"), or (2) a string of the form "@some.dll,-12345". This example refers to resource ID 12345 of the some.dll binary. That resource must be a string of the previous (1) form.

[out, retval] ppszLocalString

Type: LPWSTR*

Returns a null-terminated Unicode string that is the localized string. The calling application must free the returned string by calling CoTaskMemFree. If the method does not succeed, this parameter is set to NULL.

Return value

Type: HRESULT

Returns S_OK if successful, or S_FALSE otherwise.

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