Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LFNFindNext
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD LFNFindNext(hDir, lpnEntries, cbBuffer, lpFindBuf)
HANDLE hDir;
LPINT lpnEntries;
WORD cbBuffer;
PFILEFINDBUF2 lpFindBuf;
 
The LFNFindNext function carries out the MS-DOS Find Next File (Interrupt
21h, Function 4Fh) function.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
hDir        Identifies is the directory to search. The handle must have been
            previously created using the LFNFindFirst function.
 
lpnEntries  Points to a 16-bit variable containing the number of entries to
            return. The function updates the value with the number of
            structures actually returned.
 
cbBuffer    Specifies the size (in bytes) of the FILEFINDBUF2 structure.
 
lpFindBuf   Points to a FILEFINDBUF2 structure that receives the file
            information.
 
Return Value
 
The return value is one of the following values.
 
Value  Meaning
────────────────────────────────────────────────────────────────────────────
0      Success.
 
2      File not found.
 
3      Path not found.
 
12     No more files to be found.
 
Comments
 
The export ordinal for this function is 101.
 
See Also
 
LFNFindFirst, LFNFindClose, FILEFINDBUF2