76610067 avatar image
0 Votes"
76610067 asked 76610067 commented

GetFileAttributesExW return wrong result

GetFileAttributesExW return me a wrong result when querying a file on a samba server which is established on a ramdisk.
For example, ![GetFileAttributesExW][1] returned me "524605"

But in fact, the filelength is "8507"
This only happens on the samba server, which is established on a ramdisk

This problem occurs probabilistically

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you try the alternatives, such as GetFileSizeEx and FindFirstFile?

1 Vote 1 ·

I tried, but didn't work. Anyway, thanks!

0 Votes 0 ·

This problem occurs probabilistically

It’s definite that GetFileAttributesExW is not the problem.
0 Votes 0 ·

Yes indeed. It' s a environment problem, but i'm looking for help about what the problem is and how to fix it

1 Vote 1 ·

0 Answers