With the system folders, I'm getting STATUS_ACCESS_DENIED errors; that would throw off the count.
Edit: Do you think you could translate the main calls to NtQueryDirectoryFile Tech99? I can't follow it in enough detail to know what the difference is; it uses the FILE_DIRECTORY_INFORMATION but so do I.
