ISearchQueryHelper::get_QueryWhereRestrictions Method

Gets the restrictions appended to a query in WHERE clauses.

Syntax

HRESULT get_QueryWhereRestrictions(      
    LPWSTR *ppszRestrictions
);

Parameters

  • ppszRestrictions
    [out, retval] Receives a pointer to a comma-delimited null-terminated Unicode string that specifies one or more restrictions appended to a query by WHERE clauses.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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

ISearchQueryHelper::put_QueryWhereRestrictions