My version works on Windows 7 maybe you use READ access and the file is locked. My version uses FILE_READ_ATTRIBUTES
Also check the IoStatusBlock [out] members to see the final status
- FILE_CREATED
- FILE_OPENED
- FILE_OVERWRITTEN
- FILE_SUPERSEDED
- FILE_EXISTS
- FILE_DOES_NOT_EXIST