LFNFindNext

  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.

Parameters

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