On the Windows operating system, how do you iterate the files in a given directory without the use of third-party libraries or the use of FindFirstFile, FindNextFile, etc?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given that FindFirstFile is the main file enumeration method in Windows, what else do you expect to get? There are NT API functions (ZwQueryDirectoryFile and similar), which are called by FindFirstFile, but they are more complicated and don’t give real benefit.