我可以写在用户模式下,Vista和Windows 7中访问原始磁盘扇区? [英] Can I get write access to raw disk sectors under Vista and Windows 7 in user mode?

查看:160
本文介绍了我可以写在用户模式下,Vista和Windows 7中访问原始磁盘扇区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RawDisk网站

Windows Vista中的新的安全模型穿在用户模式下执行的应用程序的严格限制。即使有较高的管理权限,该应用程序无法获取写访问原始磁盘扇区。

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.

这是真的吗?

从微软DOC

的更改以文件系统和存储堆栈的不适用如果卷未安装或如果卷中没有文件系统。

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.

请给


  • 或者是链接到微软官方文档确认RawDisk网站

  • 或工作code例子。 (我显然没有创建一个,的CreateFile()调用失败 ERROR_ACCESS_DENIED 如果 GENERIC_WRITE 设置。)

  • 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 with ERROR_ACCESS_DENIED if GENERIC_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

推荐答案

是的。第一篇文章链接到提供异常更长的名单:

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.

这篇关于我可以写在用户模式下,Vista和Windows 7中访问原始磁盘扇区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆