hdtool.h
上传用户:tjzyjsm
上传日期:2007-02-22
资源大小:6k
文件大小:2k
- /*
- HDTOOL.H --- Hard disk tools Ver 1.1
- (C) M.L.Y 2000.8, 2001.6
- */
- #include <dos.h>
- #include <conio.h>
- #include <stdio.h>
- #include <stdarg.h>
- #include <stdlib.h>
- #include <string.h>
- #include <time.h>
- #ifndef USG_TYPE
- # define USG_TYPE
- typedef unsigned char USGC;
- typedef unsigned short USGS;
- typedef unsigned int USGI;
- typedef unsigned long USGL;
- #endif
- int int13_ext_chk(USGC drv_no, int *ext_ver);
- int get_drv_parm(USGC drv_no, USGI *cyl, USGI *head, USGI *sec, USGI *drvnum,
- USGI *phy_cyl, USGI *phy_head, USGI *phy_sec,
- int *ext_ver, USGL *LBA_sec_numL, USGL *LBA_sec_numH);
- int rwv_disk_sect(USGC rwv, USGC drv_no, USGI cyl, USGC head, USGC sec,
- USGC sec_num, USGC *buf, int ext_ver, USGL sabn);
- int format_cyl(USGC drv_no, USGI cyl, USGC head, USGC sec_num, int ext_ver);
- int read_test_disk(USGC drv, USGI cyl_num, USGI head_num, USGI sec_num,
- int ext_ver, USGL LBA_sec_num);
- int hd_clone(USGC drv1, USGI cyl_num1, USGI head_num1, USGI sec_num1,
- int ext_ver1, USGL LBA_sec_num1,
- USGC drv2, USGI cyl_num2, USGI head_num2, USGI sec_num2,
- int ext_ver2, USGL LBA_sec_num2,
- USGL LBA_begin, USGL LBA_end);
- int wrt_buf2file(char *filename, USGC *buf, USGI bytes);
- int read_file2buf(char *filename, USGC *buf, USGI bytes);
- void disp_hex(USGC *buf, int len);
- int sprintf_end(void *buffer, void *fmt, ...);
- int DbgOutStrA(USGC *buf, USGC *str, int str_len, char *ptr_left,
- int ptr_len);
- /* End of file */