CreateFile: direct write operation to raw disk “Access is denied” - Vista, Win7

前端 未结 4 1668
北恋
北恋 2020-11-27 05:50

The relevant Microsoft doc is:
Blocking Direct Write Operations to Volumes and Disks
CreateFile, remarks on Physical Disks and Volumes

The executable is wr

4条回答
  •  [愿得一人]
    2020-11-27 06:07

    I had a similar issue when porting from x86 to x64 code. You mention that you are passing null for your SECURITY_ATTRIBUTES parameter; I was getting access-denied errors myself using this approach until I actually began creating/passing this parameter.

提交回复
热议问题