Findfirstfile

Hello.
I'm trying to understand the working of findfirstfile and findnextfile.
But, I'm unable to link to a proper site that explains right from scratch. Can anyone please help?
If you want a reference, see msdn.
If you want an example, here's one:
1
2
3
4
5
6
WIN32_FIND_DATAA dat = {0};

HANDLE h = FindFirstFile("*", &dat);
do{
   //do something with the information stored in dat.
}while( FindNextFile(h, &dat) );

This code will process every file in a folder.
Topic archived. No new replies allowed.