Fastest way would be:
1) Open file calling CreateFile(...) Win32 API call passing full file name
2) Call GetFileSize(...) upon handle returned during step 1
3) Update global approx tree size ( could do padding to 2048 bytes to be 100% sure)
4) Call CloseHandle(...) to free file handle returned during call to step 1
NullDVD wrote:
How do you get the file size in the CN_FILE_TREE_PROGRESS_ADD Callback?. I need it so I can keep track of the total size of the file tree, so I can remove items if the tree gets to big to fit on a certain disc.