Does any function return how many files are in a directory?
Is the only way to iterate through all files?
(For example, when you right click the directory in windows, it lists: 7 files in directory. Is there a way to extract that information?, how is “it” getting that info?)
Thanks.
I don’t know if there’s a better way, but I use FindFirstFile/FindNextFile to do this (some error checking removed for clarity):