Find the next name, if any, that matches the filespec argument in a previous call to _findfirst, and then alters the fileinfo structure contents accordingly.
int_findnext(longhandle**,struct_finddata_t*fileinfo);**
__int64_findnexti64(longhandle**,struct_finddata_t*fileinfo);**
int_wfindnext(longhandle**,struct_wfinddata_t*fileinfo);**
__int64_wfindnexti64(longhandle**,struct_wfinddata_t*fileinfo);**
| Function | Required Header | Compatibility | 
| _findnext | <io.h> | Win 95, Win NT | 
| _findnexti64 | <io.h> | Win 95, Win NT | 
| _wfindnext | <io.h> or <wchar.h> | Win NT | 
| _wfindnexti64 | <io.h> or <wchar.h> | Win NT | 
For additional compatibility information, see Compatibility in the Introduction.
Libraries
| LIBC.LIB | Single thread static library, retail version | 
| LIBCMT.LIB | Multithread static library, retail version | 
| MSVCRT.LIB | Import library for MSVCRT.DLL, retail version | 
Return Value
If successful, _findnext and _wfindnext return 0. Otherwise, they return –1 and set errno to ENOENT, indicating that no more matching files could be found.
Parameters
handle
Search handle returned by a previous call to _findfirst
fileinfo
File information buffer
Generic-Text Routine Mappings
| TCHAR.H Routine | _UNICODE & _MBCS Not Defined | _MBCS Defined | _UNICODE Defined | 
| _tfindnext | _findnext | _findnext | _wfindnext | 
| _tfindnexti64 | _findnexti64 | _findnexti64 | _wfindnexti64 |