/* La destinazione non dovrebbe essere più piccola della fonte */
if(Sectors_in_HDD2<Sectors_in_HDD1)
{
printf("\n\n Destination Disk should not be Smaller
than Source Disk");
printf("\n Press any Key to Exit...");
getch();
exit(0);
}
/* Se tutto è giusto, copiare tutti i settori del disc di fonte al disco rigido della destinazione */
gotoxy(10,15);printf("Copying Absolute Sector: ");
for(loop=0;loop<=Sectors_in_HDD1;loop=loop+120)
{
readabsolutesectors ( 0x80, loop, 120, buffer );
writeabsolutesectors ( 0x81, loop, 120, buffer );
gotoxy(36,15); printf("%ld",loop);
if(kbhit())
{
exit(0);
}
}
//// Mostrare il messaggio di completamento \\\
printf("\n\n Disk Imaging is Now Completed, Press any Key
To Exit...");
getch();
} //// End of main
Osservazioni su codificazione:
Nella codificazione del programma dato più presto, dato che nella formazione immagine del disc stiamo continuando effettuando le seguenti mansioni:
- La struttura, la geometria è usata dalla funzione getdrivegeometry usando 13H l'estensione INTERNA, il numero 0x48 di funzione. Per una descrizione dettagliata sulle estensioni INTERNE 13H, fare riferimento il capitolo “che maneggia i grandi dischi rigidi„, discussi più presto in questo libro.
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)
|
 |
|
|