do
{
file_no=0;
finfo.drive = 0x00; /* Laufwerknummer für A: */
finfo.head = head; /* Scheibe Spurnummer */
finfo.track = track; /*Schiene Zahl*/
finfo.sector= sector; /* Sektorzahl */
finfo.nsectors=1; /* Sektoranzahl*/
finfo.buffer = buf; /* Datenpuffer*/
result = _bios_disk(_DISK_READ, &finfo); /* Den Sektor lesen */
if( (result & 0xff00) != 0) /* Wenn Lesefehler, Fehlermeldung anzeigen und herausnehmen*/
{
printf("Read error");
getch();
exit(0); // Zurück zu DOS gehen
}
/// Informationen Anzeigeschirm-Format \\\
clrscr();
gotoxy(9,1);
cprintf("ANZEIGE CYLN: %u, HEAD: %u, SECTOR: %u",
track, head, sector);
gotoxy(9,2);
cprintf("FNO NAMENSext. ATTRIBUT-ANFANGSgröße");
gotoxy(7,3);
cprintf("--------------------------------------------");
/* Ein Sektor hintereinander. Jede File/DIR Eintragung nimmt Byte 32 */
for(i=0;i<512;i+=32)
{
for(j=0;j<8;j++)
{
/// Die Akte/den Dir Namen finden \\\
root[file_no].name[j]=buf[j+i];
}
for(j=8;j<11;j++)
{
/// Die Verlängerung finden\\\
root[file_no].ext[j-8]=buf[i+j];
}
j=11;
root[file_no].attribute=buf[i+j]; /// Attribut
/// Beginnen des Blockes \\\
root[file_no].start=(0xff & buf[27+i])*16*16 + (0xff & buf[26+i]);
Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi, translated using machine translation. See original English contents on Data recovery book pages. |
|
Publishers of the Book
Number of Pages
ISBN
Price of the Book
|
BPB Publications, New Delhi, India
540
81-7656-922-4
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)
|
 |
|
|