hbirr@svn.reactos.com wrote:
The share disposition isn't necessary for FILE_READ_ATTRIBUTES.
Actually this prevents opening the file during the operation. A better candidate for GetFileAttributesEx is NtQueryFullAttributesFile which accepts a OBJECT_ATTRIBUTES structure instead of a handle, so there's no need to even open the file at all.
Best Regards,
Thomas