本文介绍了读/写FAT32引导记录的保留扇区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发与笔式驱动器接口的应用程序.我已掌握并成功阅读并阅读了该书.写入扇区.我需要在驱动器的保留空间中读取/写入值.在FAT32引导记录中,在偏移量0Eh中有保留的扇区.我可以在这些保留的扇区中进行读取/写入吗?如果可以,我该怎么办?

问候
Mohan

Hi,
I''m developing an application for interfacing with pen drive. I got handle and successfully Read & Write into the sectors. I need to Read/Write values in the reserved space of the drive. In the FAT32 Boot Record, there are reserved sectors in the offset 0Eh. Can i read/write in these reserved sector?. If so how can i do it?

Regards
Mohan

推荐答案



SetFilePointer(hFloppyDisk,offset,0,FILE_BEGIN);



例如,假设我们有一些扇区,每个扇区的大小为512字节,并假设您要访问扇区3.您希望像这样设置文件指针:



For example, let''s assume we have sectors with a size of 512 bytes each and let''s say you''d want to access sector 3. You''d want to set the file pointer like so:

SetFilePointer(hFloppyDisk,3*512,0,FILE_BEGIN);


这篇关于读/写FAT32引导记录的保留扇区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 12:32