⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hdtool.h

📁 读取软盘内容按照HD-COPY的格式写入文件
💻 H
字号:
/*
   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 */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -