int main(void)
{
HANDLE hFoundFile;
WIN32_FIND_DATA foundFileData;
SetCurrentDirectory(TEXT("C:\\"));
hFoundFile = FindFirstFileEx(TEXT("*"),FINDEX_INFO_LEVELS::FindExInfoBasic,&foundFileData ,FINDEX_SEARCH_OPS::FindExSearchLimitToDirectories ,NULL , NULL);
do
{
wprintf(TEXT("%s\n"),foundFileData.cFileName);
}
while(FindNextFile(hFoundFile,&foundFileData));
system("Pause");
return 0;
}
为什么它也输出“常规”文件,尽管FINDEX_SEARCH_OPS::FindExSearchLimitToDirectories
选项被显式传递给函数?