在不使用FindFirstFile的情况下迭代目录中的文件 [英] Iterating files in a directory without using FindFirstFile

查看:176
本文介绍了在不使用FindFirstFile的情况下迭代目录中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows操作系统上,如何在不使用第三方库的情况下迭代给定目录中的文件,或者使用FindFirstFile,FindNextFile等?

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?

推荐答案

鉴于FindFirstFile是Windows中的主要文件枚举方法,您还希望获得什么?有一些NT API函数(ZwQueryDirectoryFile和类似的),它们被FindFirstFile调用,但是它们更复杂并且没有给出真正的好处。

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.

这篇关于在不使用FindFirstFile的情况下迭代目录中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆