///// 档案部门的规模计算 \\\\\
num_sectors = one.entry[i].file_size/512;
if((one.entry[i].file_size%512)>0)
{
num_sectors = num_sectors+1;
}
/* 有缓冲的数据量512完全512字 */
for(j=0;j<512;j++)
{
wipe_buf[j] = '\0';
}
///// 从档案部门 \\\\\
j= one.entry[i].starting_cluster+31;
/* 铲除面积数据档案部门到年底 */
while(j!=(one.entry[i].starting_cluster +
num_sectors+31) )
{
if((abswrite(0x00, 1, j, &wipe_buf))!=0)
{
printf("\n 磁盘写错误阶层 ");
getch();
exit(0);
}
j++;
}
printf("\n\n File \"%.8s.%.3s\" 删除! ! ! " ,
one.entry[i].filename,
one.entry[i].extension);
one.entry[i].attribute = 0; /* 档案属性订为0 */
one.entry[i].time = 0; /* 档案资料时擦 */
one.entry[i].date = 0; /* <消除对档案资料 */
one.entry[i].starting_cluster = 0; /* 一开始定为0
*/
one.entry[i].file_size = 0; /* 档案大小来定0 */
one.entry[i].filename[0]=0xE5; /* 给删除的档案卷宗地位 */
///// 从上面写的名录资料 \\\\\\
result= abswrite(0x00, 1, 19, &one);
if (result != 0)
{
perror("读书界的错误,对任何重大新闻:出境 ");
getch();
exit(1);
}
}
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)
|
 |
|
|