Content-Length: 35190 | pFad | http://www.voidtools.com/support/everything/sdk/everything_isfileresult

Everything_IsFileResult - voidtools
voidtools

Everything_IsFileResult

The Everything_IsFileResult function determines if the visible result is file.


Syntax

BOOL Everything_IsFileResult(
DWORD index
);

Parameters

index

Zero based index of the visible result.


Return Value

The function returns TRUE, if the visible result is a file (For example: C:\ABC.123).

The function returns FALSE, if the visible result is a folder or volume (For example: C: or c:\WINDOWS).

If the function fails the return value is FALSE. To get extended error information, call Everything_GetLastError.


Error codeMeaning
EVERYTHING_ERROR_INVALIDCALLCall Everything_Query before calling Everything_IsFileResult.
EVERYTHING_ERROR_INVALIDINDEXindex 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 Everything_GetNumFileResults function.


Example

// 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 file.
BOOL bIsFileResult = Everything_IsFileResult(0);

See Also


© 2025 voidtools - Privacy








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.voidtools.com/support/everything/sdk/everything_isfileresult

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy