プログラムのコーディングは次の通りある:
/* MBRの仕切りのテーブルを読むプログラム */
# include <bios.h>
/* 仕切りのテーブルからの仕切りの記入項目を読む構造*/
struct partition
{
unsigned char bootable ; /* 活動区画バイト */
unsigned char start_side ;/* 頭部の開始*/
unsigned int start_sec_cyl ; /*セクターおよびシリンダー数の開始の組合せ */
unsigned char parttype ; /* ファイルシステムの表示器バイト */
unsigned char end_side ; /* 終りの頭部 */
unsigned int end_sec_cyl ; /* セクターおよびシリンダー数の開始の組合せ */
unsigned long part_beg ; /* 相対的なセクター数 */
unsigned long plen ; /* セクターの仕切りの長さ */
} ;
/* MBRを読む構造 */
struct part
{
unsigned char master_boot[446] ; /* IPL (初期プログラム・ローダー)*/
struct partition pt[4] ; /* 仕切りのテーブル*/
int lasttwo ; /* マジックナンバー */
} ;
struct part p ;
void main()
{
clrscr();
/* 最初ハードディスクの読まれた最初セクター*/
biosdisk ( 2, 0x80, 0, 0, 1, 1, &p ) ;
display(); /* MBRの仕切りのテーブルの情報を表示しなさい */
getch();
}
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)
|
 |
|
|