Ah sorry, my bad. I didn't copy whole text and the last sentence was the most important:
- To get the attributes of a root directory, use the GetFileAttributes function.
And using this function looks to me much more logical than using FindFirstFile for it.
Also, if DirData structure has been nulled in FileFindIter constructor, it wouldn't return random content.
Ah sorry, my bad. I didn't copy whole text and the last sentence was the most important:
- To get the attributes of a root directory, use the GetFileAttributes function.
And using this function looks to me much more logical than using FindFirstFile for it.
Also, if DirData structure has been nulled in FileFindIter constructor, it wouldn't return random content.