?? floppy.h
字號:
#include <windows.h>
#include <winioctl.h>//包含了DISK_GEOMETRY等的定義
#include <iostream>
#include <stdio.h>
//Disk是結構體指針
typedef struct disk{
HANDLE floppyDisk;
DISK_GEOMETRY theSupportedGeometry;
} *Disk;
//以下是程序中用到的四個函數
//打開軟盤,并獲取相關物理信息,存入返回的一個disk結構的
//theSupportedGeometry項中
Disk openfloppy(char driveLetter);
//功能選擇界面
char interwindow();
//將獲得磁盤的物理參數顯示出來,
bool physicalDisk(Disk theDisk);
//讀取特定的磁盤區域的內容并將它們顯示出來(文本和十六進制兩種方式);
bool sectorDump(Disk theDisk);
//從某磁盤扇區中讀出指定字節數量的數據到指定緩沖區RdBuf;
BOOL sectorRead(Disk theDisk,unsigned logSectorNumber,char *RdBuf);
//從指定緩沖區WrBuf寫指定字節數量的數據到某磁盤扇區中;
BOOL sectorWrite(Disk theDisk);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -