/* Écrire le chemin et le nom de fichier de destination pour sauver le dossier récupéré */
gotoxy(2,24);
cprintf("Écrire le chemin et le nom de fichier pour récupérer le dossier : ");
fflush(stdin);
gets(Filename_with_path);
fp=fopen(Filename_with_path,"wb");
/*Si l'erreur se produisait message d'erreur d'affichage et obtient d'entrer le chemin et le nom de fichier encore */
if(fp==NULL)
{
gotoxy(5,25);
cprintf("Erreur en ouvrant le dossier");
getch();
clear_the_line(24);
gotoxy(0,25);
cprintf(" ");
integrate(size,cylinder,head,sector); /*Entrer dans la destination encore */
}
/* Si tout est tout exact, intégrer et écrire*/
gotoxy(50,23);
cprintf("Intégration ........");
left= size%512;
sec = size/512;
sec++;
while(sec>0)
{
dinfo.drive = 0x00; /* nombre d'entraînement pour A : */
dinfo.head = head; /* nombre principal de disque */
dinfo.track = cylinder; /* nombre de voie */
dinfo.sector= sector; /* nombre de secteur */
dinfo.nsectors=1; /* compte de secteur*/
dinfo.buffer = buf; /* amortisseur de données */
result = _bios_disk(_DISK_READ, &dinfo);
/* S'il y a erreur tout en lisant n'importe quel secteur */
if( (result & 0xff00) != 0)
{
gotoxy(5,25);
cprintf("cylindre d'erreur de lecture%u, Head %u, Sector %u",
cylinder, head, sector);
}
else
{
if(sec==1)
{
for(i=0;i<left;i++)
fputc(buf[i],fp); /* Écrire l'information intégrée au dossier */
}
else
{
fwrite(buf,512,1,fp);
}
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)
|
 |
|
|