文档详情

windows下硬盘绝对读写(国外英文资料).doc

发布:2017-06-09约1.37万字共18页下载文档
文本预览下载声明
windows下硬盘绝对读写(国外英文资料) Windows hard drive is absolutely read and write 2008-07-31 07:33, overview Under the DOS operating system, the ability to read and write to the disk logical sector or physical sector is very square with the implementation of function calls such as INT13, DOS, INT25 (absolute read), and INT26 (absolute write) in the BIOS In the C language, there is also a function called biosdisk, absread, and abswrite. But when you write a WIN32 application under the WINDOWS operating system, you can no longer be straight Use the above interrupt call or function. So, can the WINDOWS operating system be able to read and write the disk sector directly? How do you implement the read-write of the disk sector? In order to solve this Problems, the author reviewed some relevant data and found that the WINDOWS operating system also provide a means of reading and writing disk sector, only in different versions with different ways and use restrictions. The most In the post, I write a disk sector that reads and writes directly, does not dare to be unique, I hope it will help you. Note: here INT13 means INT 13H, others are similar. Second, an example of reading a floppy disk sector The WINDOWS operating system for all storage devices implemented unified management, and to be on the safe side, the operating system is not allowed in the WIN32 application (work) at level Ring3 directly in tone Use interrupt functionality such as INT13, INT21, INT25, INT26, etc. But it also offers some services to make up for this deficiency, one of which is the VWIN32 service in Windows 95/98. The VWIN32 service is implemented through a VXD, which provides the device IO capability, which USES the API function DeviceIoControl to implement WIN32 applications and disk device drivers Communication between programs to enable access to disk. The services provided by VWIN32 are a series of control commands that implement INT13, INT25, INT26 and, for example, DOS operating systems Function calls lik
显示全部
相似文档