📄 partion.h
字号:
#ifndef PARTION_H
#define PARTION_H
typedef struct
{
char Head;/*磁头*/
char Sector;/*扇区*/
char Cylinder;/*柱面*/
}CHS;
typedef struct
{
int SectorBytes;/*每扇区字节数*/
char SectorsPerCluster;/*每簇扇区数*/
int ReservedSectors;/*保留扇区数*/
char nbrFat;/*FAT的个数*/
int RootEntry;/*根目录项数*/
int TotalSectors;/*分区总扇区数(小于32M)*/
char Media;/*分区介质标识*/
int SectorsPerFAT;/*每个Fat占的扇区数*/
int SectorsPerTrack;/*每道扇区数*/
int Heads;/*磁头数*/
long hiddenSectors;/*隐含扇区数*/
long BigTotalSectors;/*分区总扇区数(大于32M)*/
}BPB_FAT;
typedef struct
{
char FileName[8];/*文件名字,目录名字,卷标*/
char ExtendName[3];/*扩展名*/
char FileAttribute;/*文件属性*/
char Reserved[10];/*保留区域*/
int time;/*文件时间*/
int date;/*文件日期*/
int firstcluster;/*文件的第一个簇号*/
long filesize; /*文件的大小*/
}RootDirectory;
/***************************************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -