From the RawDisk website:
The new security model of Windows Vista puts tight restrictions on applications executed in user mode. Even with elevated administrative rights, the application can’t get write access to raw disk sectors.
Is this true?
The changes to the file system and to the storage stack do not apply if the volume is not mounted or if the volume has no file system.
Please give
- either a link to the official Microsoft doc confirming the RawDisk website
- or a working code example. (I obviously failed to create one,
CreateFile()
call fails withERROR_ACCESS_DENIED
ifGENERIC_WRITE
is set.)
Other relevant Microsoft docs that I have so far found:
- Blocking Direct Write Operations to Volumes and Disks
- IRP_MJ_WRITE at
SL_FORCE_DIRECT_WRITE
- FLT_IO_PARAMETER_BLOCK structure at
SL_FORCE_DIRECT_WRITE