As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center作为指导。
                            
                        
                    
                
                                7年前关闭。
            
                    
我想在C ++中尽快扫描FAT32磁盘(我只需要文件路径和文件名),
扫描FAT32磁盘上的每个文件。
有没有API可以做到这一点?

最佳答案

检查此线程:How can I quickly enumerate directories on Win32?

它实际上描述了FindFirstFile / FindNextFile,但是如果您需要更快的速度,则应该使用内核。
但是,该线程中描述的索引解决方案不适用于FAT32系统-Credit MSalters

09-13 07:14