读与写功能Windows XP中的写扇区 [英] Functions for Read & Write Sector in Windows XP

查看:87
本文介绍了读与写功能Windows XP中的写扇区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个用于与Windows XP中的笔式驱动器进行交互的应用程序.我用createfile()获取句柄.此外,我需要从指定扇区读取/写入数据.

我使用ReadFile()/WriteFile()进行读写,但是
在这里,我无法指定要从
读取/写入的扇区号 指定的部门.

我还使用IOCTL_DISK_READ从指定的扇区读取数据,但是Windows XP不支持(仅在Windows CE中有效)

谁能帮我.

问候
S.Mohanraj

Hi,
I''m developing an application for interacting with pen drive in Windows XP. I used createfile() to get handle. Further I need to read/write data from the specified sector.

I used ReadFile()/WriteFile() for read and write, but
here i''m unable to specify a sector number to read/write from a
specified sector.

I also used IOCTL_DISK_READ for reading data from a specified sector, but it is not supported in windows XP(it works only in Windows CE)

Can anyone help me.

Regards
S.Mohanraj

推荐答案

这里是一个答案:
http://www.codeguru.com/cpp/wp/system/misc/article. php/c5765 [ ^ ]

问候
Espen Harlinn
Here is one answer:
http://www.codeguru.com/cpp/w-p/system/misc/article.php/c5765[^]

Regards
Espen Harlinn


这篇关于读与写功能Windows XP中的写扇区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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