ISearchQueryHelper::get_QueryMaxResults Method

Gets the maximum number of results to be returned by the query.

Syntax

HRESULT get_QueryMaxResults(      
    LONG *pcMaxResults
);

Parameters

  • pcMaxResults
    [out, retval] Receives a pointer to the maximum number of results to be returned by the query. Negative numbers return all results.

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_QueryMaxResults