DWORD Everything_GetResultRunCount(
DWORD dwIndex,
);dwIndex
| Error code | Meaning |
|---|---|
| EVERYTHING_OK | The run count is 0. |
| EVERYTHING_ERROR_INVALIDCALL | Call Everything_Query before calling Everything_GetResultRunCount. |
| EVERYTHING_ERROR_INVALIDREQUEST | Run count information was not requested or is unavailable, Call Everything_SetRequestFlags with EVERYTHING_REQUEST_RUN_COUNT before calling Everything_Query. |
| EVERYTHING_ERROR_INVALIDINDEX | index must be greater than or equal to 0 and less than the visible number of results. |
DWORD runCount;
// set the search text to abc AND 123
Everything_SetSearch("abc 123");
// execute the query
Everything_Query(TRUE);
// Get the run count of the first visible result.
runCount = Everything_GetResultRunCount(0);