News for hackers. Stuff that matters.
Re:Fibers: An Elegant Windows API by humblebee on Friday March 29, 2019 @12:20PM (#19522986)
I don't know, I was just asking for clarification to the question, because you did not provide any information on the distinction of the two methods in the question "why do I need to find the first file with ...".

Your reply here could of been a great reply to the original question.

Re:Fibers: An Elegant Windows API by magicalhippo on Friday March 29, 2019 @12:36PM (#19523181)
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.