我可以在 Vista 和 Windows 7 用户模式下获得对原始磁盘扇区的写访问权限吗?
来自 RawDisk 网站:
Windows Vista 的新安全模型对在用户模式下执行的应用程序施加了严格的限制。即使具有提升的管理权限,应用程序也无法获得对原始磁盘扇区的写访问权限。
这是真的吗?
如果卷未安装或如果卷没有文件系统,则对文件系统和存储堆栈的更改不适用。< /strong>
请提供
- 确认 RawDisk 网站的 Microsoft 官方文档链接
- 或工作代码示例。 (显然我未能创建一个,如果设置了 GENERIC_WRITE,
CreateFile()
调用会失败,并显示ERROR_ACCESS_DENIED
。)
我拥有的其他相关 Microsoft 文档远发现:
- 阻止对卷和磁盘的直接写入操作
- IRP_MJ_WRITE 位于
SL_FORCE_DIRECT_WRITE
- FLT_IO_PARAMETER_BLOCK 结构位于
SL_FORCE_DIRECT_WRITE
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。您链接到的第一篇文章提供了更长的例外列表:
显然,最后一个例外与你无关。用户模式与内核模式相反。其他例外情况仍然适用。
Yes. The first article you link to provides a longer list of exceptions:
Obviously, the last exception is irrelevant to you. User mode is the opposite of kernel mode. The other exceptions still apply.