SDK/Everything GetTotFileResults

From Wiki

< SDK
Jump to: navigation, search

Everything_GetTotFileResults

The Everything_GetTotFileResults function returns the total number of file results.


Syntax

DWORD Everything_GetTotFileResults(void);


Parameters

This functions has no parameters.


Return Value

Returns the total number of file results.
If the function fails the return value is 0. To get extended error information, call Everything_GetLastError.
Error code Meaning
EVERYTHING_ERROR_INVALIDCALL Call Everything_Query before calling Everything_GetTotFileResults.


Remarks

You must call Everything_Query before calling Everything_GetTotFileResults.
Use Everything_GetNumFileResults to retrieve the number of visible file results.
Use the result offset and max result values to limit the number of visible results.


Example

// set the search text to abc AND 123
Everything_SetSearch("abc 123");

// execute the query
Everything_Query(TRUE);

// get the total number of file results.
DWORD dwTotFileResults = Everything_GetTotFileResults();


Function Information

DLL Requires Everything.dll
Header Declared in Everything.h, include Everything.h
Library Link to Everything.lib


See Also

Personal tools