3 ms·
I misunderstood the poster I was replying to. To me it sounded like he wanted a singular call to be able to iterate over all the files in the directory. I then
by magicalhippo 8y ago
I misunderstood the poster I was replying to. To me it sounded like he wanted a singular call to be able to iterate over all the files in the directory.
I then assumed you proposed something similar with your FindFile call, and I didn't and still don't see how to do that in a clean way, hence asking how you would imagine it working.
In a reply the OP clarified that it was the fact that FindFirstFile does two things (initializing the handle, and getting the first result if any), rather than cleanly separating the handle initialization from getting the results. This is different, and a point I can agree with.