如何在Windows中打开磁盘并以低级别读取数据?

我知道在linux中它就像/ dev / sda一样简单但在Windows中如何打开磁盘并开始在低级读取数据?

在python我尝试过:

f = open("K:","r")

我收到此错误

Traceback (most recent call last):
  File "<stdin>",line 1,in <module>
IOError: [Errno 13] Permission denied: 'K:'

即使是管理员,我也会收到此错误.

http://support.microsoft.com/kb/100027

To open a physical hard drive for
direct disk access (raw I/O) in a
Win32-based application,use a device
name of the form

\\.\PhysicalDriveN

where N is 0,1,2,and so forth,
representing each of the physical
drives in the system.

To open a logical drive,direct access
is of the form

\\.\X:

where X: is a hard-drive partition letter,floppy disk drive,or CD-ROM drive.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...