compile it with latest engine sdk and it should work with lite-c. of courese you will need a new header.
Sory but I dont have C++ compiler. It must be another way, maybe i can use windows.h, here 2 function but I dont know how to use it.
long WINAPI FindFirstFile(long lpFileName,long lpFindFileData);
long WINAPI FindNextFile(long hFindFile,long lpFindFileData);