with the struct "WIN32_FIND_DATAW FindData" i list in my own wfx-plugin some entries as directory (FILE_ATTRIBUTE_DIRECTORY) and associate a size value (which can represent different things) in the fields "FindData->nFileSizeHigh" and "FindData->nFileSizeLow".
it seems that tc doesn't use the high dword, only the value of the low-dword is shown.
if the entry is "tagged" as a file (without FILE_ATTRIBUTE_DIRECTORY), then the correct size is shown.
- Site Admin
- Posts: 36694
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
Code: Select all
s.size:=f.nFileSizeLow; if f.dwFileAttributes and fadirectory=0 then s.SizeHigh:=f.nFileSizeHigh else s.SizeHigh:=0;