IQueryParser::RestateToString method (structuredquery.h)

Restates a condition as a structured query string. If the condition was the result of parsing an original query string, the keywords of that query string are used to a great extent. If not, default keywords are used.

Syntax

HRESULT RestateToString(
  [in]  ICondition *pCondition,
  [in]  BOOL       fUseEnglish,
  [out] LPWSTR     *ppszQueryString
);

Parameters

[in] pCondition

Type: ICondition*

The condition to be restated.

[in] fUseEnglish

Type: BOOL

Reserved. Must be FALSE.

[out] ppszQueryString

Type: LPWSTR*

Receives the restated query string. The caller must free the string by calling CoTaskMemFree.

Return value

Type: HRESULT

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

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