News for hackers. Stuff that matters.
Re:Fibers: An Elegant Windows API by humblebee on Friday March 29, 2019 @12:21PM (#19523004)
No, it was a question.

Edit: I should clarify. It was a low effort question to another low effort question. I should state that I have no experience with the API in question. I was just asking a question of the difference between the two, and the poster above me answer in another reply that the answer is that FindFirstFile is used to initialize / reset the query, where FindNextFile is use to continue the query.

To further answer the question I was replying to above, I think another function that could be paired with a hypothetical FindFile would be a method to initialize the query.

I do not know what would be a better API.

Re:Fibers: An Elegant Windows API by jstimpfle on Friday March 29, 2019 @12:31PM (#19523131)
> To further answer the question I was replying to above, I think another function that could be paired with a hypothetical FindFile would be a method to initialize the query.

This is the obvious and correct way to do it, and it's the way it's done in POSIX with opendir() / readdir().