int FindNext( SearchRec * rec );
The FindNext function performs the same function as the FindFirst funciton, except it does not copy any search parameters into the SearchRec structure (only info about found files) and it begins searching at the last directory entry offset at which a file was found, rather than at the beginning of the current working directory.If the return value of the function is 0 then "utf16LFNfoundLength" indicates whether the file found was long file name or short file name(8P3 format). The "utf16LFNfoundLength" is non-zero for long file name and is zero for 8P3 format."utf16LFNfound" points to the address of long file name if found during the operation.
None
Parameters |
Description |
rec |
The structure to store the file information in |
Return Values |
Description |
0 |
File was found |
-1 |
No additional files matching the specified criteria were found |
Call FindFirst or FindFirstpgm before calling this function