如何得到硬盘物理序号计算机等级考试

文章作者 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.

相关文章


计算机二级DELPHI辅导:在delphi中设置工作目录计算机等级考试
delphi的Desktop主窗体介绍计算机等级考试
计算机二级辅导:DELPHI数据库别名计算机等级考试
Delphi中实现文件拷贝的三种方法计算机等级考试
如何得到硬盘物理序号计算机等级考试
Delphi中RichEdit的奥妙计算机等级考试
用Delphi实现风Word97风格的工具栏计算机等级考试
实现“这是什么?”的功能计算机等级考试
计算机二级辅导:从当前的浏览器取得当前URL计算机等级考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛