📄 hdtype.h
字号:
#ifndef _CTYPE
#define _CTYPE
typedef unsigned char HDByte;
typedef unsigned int HDDword;
typedef unsigned short HDWord;
typedef int HDBool;
#define HDTURE 1
#define HDFALSE 0
#define FDTSIZE 32
#define FILE_WRITE 1
#define FILE_READ 2
#define HD_SEEK_SET (0x0000)
#define HD_SEEK_CUR (0x0001)
#define HD_SEEK_END (0x0002)
typedef struct
{ HDDword ActivePartition;
HDDword PartitionIndeicator;
HDDword SectorsPreceding;
HDDword SectorsInPartition;
HDDword LBABegin;
} PartitionTable_Type;
typedef struct
{
HDDword BPB_BytsPerSec;
HDDword BPB_SecPerClus;
HDDword BPB_RsvdSecCnt;
HDDword BPB_NumFATs;
HDDword BPB_HiddSec;
HDDword BPB_TotSec32;
HDDword BPB_FATSz32;
HDDword BPB_FSInfo;
HDDword BPB_RootClus;
} BootSectorFat32_Type;
typedef struct
{
HDDword FSI_Free_Count;
HDDword FSI_Nxt_free;
} FS_Info_Type;
typedef struct
{
BootSectorFat32_Type dbr;
FS_Info_Type fsi;
HDDword fatptr;
HDDword rootptr;
} FAT_Type;
typedef struct
{
HDDword DIR_Name[3];
HDDword DIR_Attr;
HDDword DIR_FstClus;
HDDword DIR_FileSize;
} FDT_Type;
typedef struct
{
int fd;
HDByte fbuf[4096];
FDT_Type ft;
HDDword fpos;
HDDword fattr;
HDDword fsec;
int ptidx;
int ftofs;
} FILE_Type;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -