and you set h = FindFirstFile((dir+"/*.").c_str(), &fd);
If you were to use
1 2 3 4
while ((((string)fd.cFileName == ".") || ((string)fd.cFileName == "..")) && (FindNextFile(h,&fd)))
{
//Do nothing because FindNextFile is changing fd.cFileName
} //end while
will FindNextFile(h,&fd) change h?
In other words, would FindNextFile(FindFirstFile((dir+"/*.").c_str(), &fd), &fd) mean the same as FindNextFile(h, &fd)?