Programa para restaurar o apoio de MBR da lima Backup

 
Data Recovery PRO DATA DOCTOR

Home | Order Online | Downloads | Contact Us | Software Knowledgebase

it | es | pt | fr | de | jp | kr | cn | ru | nl | gr


Programa para restaurar o MBR do apoio:

O Coding do programa é como segue:

/*Programa para restaurar o apoio de MBR da lima Backup */

#include <bios.h>
#include <stdio.h>

int main(void)
{
struct diskinfo_t dinfo;
int result;
int count=0;
char filename[80]; /* Armazena a lima - nomear dado por Usuário */
static char dbuf[512]; /* Amortecedor dos dados de 512 Bytes */
FILE *fp;

/* Começar o usuário Input para o trajeto da lima Backup de MBR */

printf("\n Enter The Filename and path of Backup File of MBR \n ");
gets(filename);

if((fp=fopen(filename,"rb"))==NULL)
{
printf("Could not open Backup File, Press any key to Exit...");
getch();
exit(1);
}

/* Os dados de MBR devem ser de 512 Bytes exatos */

while(count<512)
{
fscanf(fp,"%c",&dbuf[count]);
count++;
}
fclose(fp);

printf("Attempting to Write to Hard disk drive :\n");

dinfo.drive = 0x80; /* número de movimentação para o primeiro disco duro */
dinfo.head = 0; /* número principal do disco */
dinfo.track = 0; /* número da trilha */
dinfo.sector = 1; /* número do setor */
dinfo.nsectors = 1; /* contagem de setor */
dinfo.buffer = dbuf; /* amortecedor dos dados */

result = _bios_disk(_DISK_WRITE, &dinfo);

if ((result & 0xff00) == 0)
{
printf("Restoring the Backup of MBR to The Disk
Sector: successful.\n");
}
else

printf("Cannot Write on Hard Disk drive, status =
0x%02x\n", result);

return 0;
}

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.

Data Recovery with & without Programming


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)





Buy Data recovery Book

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19

Next page

© Copyright 2002-2005 DataDoctor.Biz

Home | Contato | Download | Termos e circunstâncias | Sitemap

Home | Contact us | Downloads | Terms and conditions | Site map

Website Data Recovery | recuperación de Datos | Récupération de données | Datenrettung | Recupero dati | データ復旧 | 데이터 복구 | 数据恢复 | Восстановление данных | De terugwinning van gegevens | Ανάκτηση δεδομένων
Sitemap Site map1 2 3 4 | Spanish1 2 3 | French1 2 3 | German1 2 3 | Italian1 2 3 | Portuguese1 2 3 | Japanese1 2 3 | Korean1 2 3 | Chinese1 2 3 | Russian1 2 3 | Dutch1 2 3 | Greek1 2 3
Data Recovery Book English | Spanish | French | German | Italian | Portuguese | Japanese | Korean | Chinese | Russian | Dutch | Greek