FindNextFile function

Systems: WinNT/Win32s (Unicode)
Library/ordinal: KERNEL32: 167 (Ansi), 168 (Unicode)

STDCALL BOOL FindNextFile(HANDLE SearchHandle, LPWIN32_FIND_DATA FileData);

Searches for the next file matching the pattern of a search inititated with FindFirstFile.

SearchHandle

Gives the handle (returned by a call to FindFirstFile) identifying the search.

FileData

Points to the WIN32_FIND_DATA structure (WIN32_FIND_DATAA for Ansi implementation or WIN32_FIND_DATAW for Unicode) to recieve information about the found file. Microsoft documentation makes it unclear whether the structure needs to be the same on entry as it was when returned by FindFirstFile or whether a different memory location may be used (I suggest the latter is most likely).