Filter:Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NET Java
Searches for the first instance of a file which tags satisfy a query.
- Directory - search directory.
- Query - search query.
- Flags - search flags.
- Search - on return contains the structure with search result
- [Plain C] Storage - handle to the storage returned by Create or Open function.
Values of Flags
[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB] [Java]
Specifies whether to recursively search in subdirectories.
True if a file was successfully located.
False if no files have been found.
[Java] the structure with search result.
[Plain C] 0 if the function succeeded or one of Error codes if the function failed.
FindByQueryFirst searches the directory specified by Directory using file metadata (tags), for the first file that matches the Query. When you finish enumeration, remember to call FindByQueryClose. Calling this method is not necessary, if FindByQueryFirst returned False ([DLL] "errNoMoreFiles" error code).