GetFileAttributesExW return wrong result

旭 谭 6 Reputation points
2021-11-01T09:06:52.937+00:00

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,712 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.