/* ***** verificar para ver se há a divisória ativa***** */
if(*sec==se && *no_par==0) /*se divisória preliminar */
{
*sec=se=0;
for(active_offset=446;active_offset<=494;active_offset+=16)
{
active_par=buffer[active_offset];
if(active_par==0x80) /* verificar para ver se há a divisória ativa*/
break;
else
active_pos++; /* posição da divisória ativa */
}
/* para divisória prolongada */
for(active_offset=450;active_offset<=511;active_offset+=16)
{
active_par=buffer[active_offset];
if(active_par==0x05 | active_par==0x0F)
/*verificar para ver se há divisória prolongada */
break;
else
extended_pos++; /*posição de divisória prolongada */
}
if(active_pos==4)
active_pos=1;
if(extended_pos==4)
extended_pos=1;
partloc1=0x1C0+extended_pos*16;
}
else
{
active_pos=0;
extended_pos=1;
partloc1=0x1D0;
if(se_p!=0)
{
*sec=se=se_p; /*começar de divisória prolongada */
}
}
/* Setores relativos na divisória */
relative_sec= *(unsigned long *)(buffer+454+active_pos*16);
/* Número dos setores na divisória */
no_sectors=*(long *)(buffer+458+active_pos*16);
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)
|
 |
|
|