ISearchDesktop::ExecuteSQLQuery method

Note

Windows Desktop Search 2.x is an obsolete technology that was originally available as an add-in for Windows XP and Windows Server 2003. On later releases, use the Windows Search API instead.

Takes a pointer to a string that contains a Structured Query Language (SQL) query and its attributes and returns a pointer to the return set.

Syntax

HRESULT ExecuteSQLQuery(
  [in]  LPCWSTR *pdwAttributes,
  [in]  LPCWSTR pwszURL,
  [out] ppidUrl *ppidUrl
);

Parameters

pdwAttributes [in]

Type: LPCWSTR*

A string that contains the other attributes for the query.

pwszURL [in]

Type: LPCWSTR

A string that contains the SQL query.

ppidUrl [out]

Type: ppidUrl*

When this method returns successfully, contains a pointer to the returned recordset.

Return value

Type: HRESULT

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