=Everything_GetTotFileResults=
The '''Everything_GetTotFileResults''' function returns the total number of file results.

==Syntax==
<pre>
DWORD Everything_GetTotFileResults(void);
</pre>

==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 [[support/everything/SDK/Everything_GetLastError|Everything_GetLastError]].

{|
! Error code
! Meaning
|-
| EVERYTHING_ERROR_INVALIDCALL
| Call [[support/everything/SDK/Everything_Query|Everything_Query]] before calling Everything_GetTotFileResults.
|}

==Remarks==
You must call [[support/everything/SDK/Everything_Query|Everything_Query]] before calling Everything_GetTotFileResults.
Use [[support/everything/SDK/Everything_GetNumFileResults|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.
Everything_GetTotFileResults is not supported when using [[support/everything/SDK/Everything_SetRequestFlags|Everything_SetRequestFlags]]

==Example==

<pre>
// 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();
</pre>

==See Also==
<ul>
*[[support/everything/SDK/Everything_Query|Everything_Query]]
*[[support/everything/SDK/Everything_GetNumResults|Everything_GetNumResults]]
*[[support/everything/SDK/Everything_GetNumFileResults|Everything_GetNumFileResults]]
*[[support/everything/SDK/Everything_GetNumFolderResults|Everything_GetNumFolderResults]]
*[[support/everything/SDK/Everything_GetTotResults|Everything_GetTotResults]]
*[[support/everything/SDK/Everything_GetTotFolderResults|Everything_GetTotFolderResults]]
</ul>
