The Everything_GetNumFolderResults function returns the number of visible folder results.
DWORD Everything_GetNumFolderResults(void);
This functions has no parameters.
Returns the number of visible folder 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_GetNumFolderResults. |
You must call Everything_Query before calling Everything_GetNumFolderResults.
Use Everything_GetTotFolderResults to retrieve the total number of folder results.
If the result offset state is 0, and the max result is 0xFFFFFFFF, Everything_GetNumFolderResults will return the total number of folder results and all folder results will be visible.
Everything_GetNumFolderResults is not supported when using Everything_SetRequestFlags
// set the search text to abc AND 123
Everything_SetSearch("abc 123");
// execute the query
Everything_Query(TRUE);
// get the number of visible folder results
DWORD dwNumFolderResults = Everything_GetNumFolderResults();