如何得到硬盘物理序号计算机等级考试
文章作者 100test 发表时间 2010:01:01 09:27:19
来源 100Test.Com百考试题网
编辑特别推荐:
全国计算机等级考试(等考)指定教材
全国计算机等级考试学习视频
全国计算机等级考试网上辅导招生
全国计算机等级考试时间及科目预告
百考试题教育全国计算机等级考试在线测试平台
全国计算机等级考试资料下载
全国计算机等级考试论坛
如何应付二级考试中的公共基础知识
全国计算机等级考试上机考试应试技巧
unit hdid.
interface
uses
Windows, Controls,SysUtils,Forms.
//, Graphics, Dialogs, Classes, Messages,StdCtrls.
type
TSrbIoControl = packed record
HeaderLength : ULONG.
Signature: Array[0..7] of Char.
Timeout: ULONG.
ControlCode: ULONG.
ReturnCode : ULONG.
Length : ULONG.
end.
SRB_IO_CONTROL = TSrbIoControl.
PSrbIoControl = ^TSrbIoControl.
TIDERegs = packed record
bFeaturesReg : Byte. // Used for specifying SMART \"commands\".
bSectorCountReg: Byte. // IDE sector count register
bSectorNumberReg : Byte. // IDE sector number register
bCylLowReg : Byte. // IDE low order cylinder value
bCylHighReg: Byte. // IDE high order cylinder value
bDriveHeadReg: Byte. // IDE drive/head register
bCommandReg: Byte. // Actual IDE command.
bReserved: Byte. // reserved.Must be zero.
end.
IDEREGS = TIDERegs.
PIDERegs= ^TIDERegs.
TSendCmdInParams = packed record
cBufferSize: DWORD.
irDriveRegs: TIDERegs.
bDriveNumber : Byte.
bReserved: Array[0..2] of Byte.
dwReserved : Array[0..3] of DWORD.
bBuffer: Array[0..0] of Byte.
end.
SENDCMDINPARAMS = TSendCmdInParams.
PSendCmdInParams= ^TSendCmdInParams.
TIdSector = packed record
wGenConfig : Word.
wNumCyls : Word.
wReserved: Word.
wNumHeads: Word.
wBytesPerTrack : Word.
wBytesPerSector: Word.
wSectorsPerTrack : Word.
wVendorUnique: Array[0..2] of Word.
sSerialNumber: Array[0..19] of Char.
wBufferType: Word.
wBufferSize: Word.
wECCSize : Word.