Back up your hard drive partition table with Turbo C

zhaozj2021-02-16  48

Back up your hard drive partition table with Turbo C

Use the BiosDisk function to CHAR Disk (int CMD, int DRIVE, INT NSECTS, VOID * BUFFER)

First read the C disk 0 magnetic head 0 (1, 1, 0, 1, 1, and buffer) to the BUFFER, and write the buffer to the specified file.

When recovered, the file is read, such as buffer, then writes the C disk 0 head 0 track first sector with BisoDisk (3, OX80, 0, 0, 1, 1, and Buffer).

Note, read and write this file must be used in binary, otherwise you will cry!

The meaning of the specific parameters can be seen in Turbo C,

转载请注明原文地址:https://www.9cbs.com/read-25146.html

New Post(0)