=Everything_IsVolumeResult=
The '''Everything_IsVolumeResult''' function determines if the visible result is the root folder of a volume.

==Syntax==
<pre>
BOOL Everything_IsVolumeResult(
    DWORD index
);
</pre>

==Parameters==
<dl>
;''index''
Zero based index of the visible result.
</dl>

==Return Value==
The function returns TRUE, if the visible result is a volume (For example: C:).
The function returns FALSE, if the visible result is a folder or file (For example: C:\ABC.123).
If the function fails the return value is FALSE. 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_IsVolumeResult.
|-
| EVERYTHING_ERROR_INVALIDINDEX
| index must be greater than or equal to 0 and less than the visible number of results.
|}

==Remarks==
You can only call this function for a visible result. To determine if a result is visible use the [[support/everything/SDK/Everything_GetNumFileResults|Everything_GetNumFileResults]] function.

==Example==
<pre>
// set the search text to abc AND 123
Everything_SetSearch("abc 123");

// execute the query
Everything_Query(TRUE);

// determine if the first visible result is a volume.
BOOL bIsVolumeResult = Everything_IsVolumeResult(0);
</pre>

==See Also==
<ul>
*[[support/everything/SDK/Everything_Query|Everything_Query]]
*[[support/everything/SDK/Everything_IsFolderResult|Everything_IsFolderResult]]
*[[support/everything/SDK/Everything_IsFileResult|Everything_IsFileResult]]
</ul>
