简体   繁体   English

如何使用c ++读取ntfs主文件表

[英]how to read ntfs master file table using c++

I want to enumerate all the files on a disk. 我想枚举磁盘上的所有文件。 I am using WinAPI FindFirst/FindNext for enumeration. 我使用WinAPI FindFirst / FindNext进行枚举。 But this method is taking a alot of time. 但这种方法需要很多时间。 I read somewhere that we can enumerate very fast by reading the ntfs master file table which contains all the information regarding every file on the disk. 我读到了一个我们可以通过读取ntfs主文件表来快速枚举的地方,该表包含有关磁盘上每个文件的所有信息。 Is there any API or some method in c++ to read the ntfs master table? 在c ++中是否有任何API或某些方法来读取ntfs主表?

There is no C++ library functionality which would be OS specific, since this would not run on other platforms, or against other file systems. 没有特定于操作系统的C ++库功能,因为这不会在其他平台上运行,也不会在其他文件系统上运行。

What you are really looking for is Windows API functions, not std C++ library functions. 你真正想要的是Windows API函数,而不是std C ++库函数。

Your best source for that kind of information might be the the Linux NTFS file system driver which is actually a Linux user space file system. 这种信息的最佳来源可能是Linux NTFS文件系统驱动程序,它实际上是Linux用户空间文件系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM