VB读取硬盘序列号Private Const MAX_IDE_DRIVES       As Long = 4
VB读取硬盘序列号
Private Const IDENTIFY_BUFFER_SIZE       As Long = 512
VB读取硬盘序列号
Private Const DFP_SEND_DRIVE_COMMAND       As Long = &H7C084
VB读取硬盘序列号
Private Const DFP_RECEIVE_DRIVE_DATA       As Long = &H7C088
VB读取硬盘序列号
VB读取硬盘序列号
Private Type GETVERSIONOUTPARAMS
VB读取硬盘序列号        bVersion   
As Byte                 '   Binary   driver   version.
VB读取硬盘序列号
        bRevision   As Byte               '   Binary   driver   revision.
VB读取硬盘序列号
        bReserved   As Byte               '   Not   used.
VB读取硬盘序列号
        bIDEDeviceMap   As Byte       '   Bit   map   of   IDE   devices.
VB读取硬盘序列号
        fCapabilities   As Long       '   Bit   mask   of   driver   capabilities.
VB读取硬盘序列号
        dwReserved(3)   As Long       '   For   future   use.
VB读取硬盘序列号
End Type
VB读取硬盘序列号
Private Type IDEREGS
VB读取硬盘序列号        bFeaturesReg   
As Byte                 '   Used   for   specifying   SMART   "commands".
VB读取硬盘序列号
        bSectorCountReg   As Byte           '   IDE   sector   count   register
VB读取硬盘序列号
        bSectorNumberReg   As Byte         '   IDE   sector   number   register
VB读取硬盘序列号
        bCylLowReg   As Byte                     '   IDE   low   order   cylinder   value
VB读取硬盘序列号
        bCylHighReg   As Byte                   '   IDE   high   order   cylinder   value
VB读取硬盘序列号
        bDriveHeadReg   As Byte               '   IDE   drive/head   register
VB读取硬盘序列号
        bCommandReg   As Byte                   '   Actual   IDE   command.
VB读取硬盘序列号
End Type
VB读取硬盘序列号
VB读取硬盘序列号
Private Type SENDCMDINPARAMS
VB读取硬盘序列号        cBufferSize   
As Long                   '   Buffer   size   in   bytes
VB读取硬盘序列号
        irDriveRegs   As IDEREGS             '   Structure   with   drive   register   values.
VB读取硬盘序列号
        bDriveNumber   As Byte                 '   Physical   drive   number   to   send
VB读取硬盘序列号
        bReserved(2)   As Byte                 '   Reserved   for   future   expansion.
VB读取硬盘序列号
        dwReserved(3)   As Long               '   For   future   use.
VB读取硬盘序列号
        bBuffer(0)   As Byte                     '   Input   buffer.
VB读取硬盘序列号
End Type
VB读取硬盘序列号
Private Const IDE_ATAPI_ID       As Long = &HA1           '   Returns   ID   sector   for   ATAPI.
VB读取硬盘序列号
Private Const IDE_ID_FUNCTION       As Long = &HEC           '   Returns   ID   sector   for   ATA.
VB读取硬盘序列号
Private Const IDE_EXECUTE_SMART_FUNCTION       As Long = &HB0           '   Performs   SMART   cmd.
VB读取硬盘序列号
Private Type DRIVERSTATUS
VB读取硬盘序列号        bReserved(
1)   As Byte                 '   Reserved   for   future   expansion.
VB读取硬盘序列号
        dwReserved(1)   As Long               '   Reserved   for   future   expansion.
VB读取硬盘序列号
End Type
VB读取硬盘序列号
VB读取硬盘序列号
Private Type SENDCMDOUTPARAMS
VB读取硬盘序列号        cBufferSize   
As Long                   '   Size   of   bBuffer   in   bytes
VB读取硬盘序列号
        drvStatus   As DRIVERSTATUS       '   Driver   status   structure.
VB读取硬盘序列号
        bBuffer(0)   As Byte                     '   Buffer   of   arbitrary   length   in   which   to   store   the   data   read   from   the                                                                                     '   drive.
VB读取硬盘序列号
End Type
VB读取硬盘序列号
VB读取硬盘序列号
VB读取硬盘序列号
Private Type ATTRTHRESHOLD
VB读取硬盘序列号        bAttrID   
As Byte                           '   Identifies   which   attribute
VB读取硬盘序列号
        bWarrantyThreshold   As Byte     '   Triggering   value
VB读取硬盘序列号
        bReserved(9)   As Byte               '   VB读取硬盘序列号
VB读取硬盘序列号
End Type
VB读取硬盘序列号
VB读取硬盘序列号
Private Type IDSECTOR
VB读取硬盘序列号        wGenConfig   
As Integer
VB读取硬盘序列号        wNumCyls   
As Integer
VB读取硬盘序列号        wReserved   
As Integer
VB读取硬盘序列号        wNumHeads   
As Integer
VB读取硬盘序列号        wBytesPerTrack   
As Integer
VB读取硬盘序列号        wBytesPerSector   
As Integer
VB读取硬盘序列号        wSectorsPerTrack   
As Integer
VB读取硬盘序列号        wVendorUnique(
2)   As Integer
VB读取硬盘序列号        sSerialNumber(
19)   As Byte
VB读取硬盘序列号        wBufferType   
As Integer
VB读取硬盘序列号        sFirmwareRev(
7)   As Byte
VB读取硬盘序列号        sModelNumber(
39)   As Byte
VB读取硬盘序列号
End Type
VB读取硬盘序列号
VB读取硬盘序列号
Private Const VER_PLATFORM_WIN32s As Long = 0
VB读取硬盘序列号
Private Const VER_PLATFORM_WIN32_WINDOWS As Long = 1
VB读取硬盘序列号
Private Const VER_PLATFORM_WIN32_NT As Long = 2
VB读取硬盘序列号
Private Type OSVERSIONINFO
VB读取硬盘序列号        dwOSVersionInfoSize   
As Long
VB读取硬盘序列号        dwMajorVersion   
As Long
VB读取硬盘序列号        dwMinorVersion   
As Long
VB读取硬盘序列号        dwBuildNumber   
As Long
VB读取硬盘序列号        dwPlatformId   
As Long
VB读取硬盘序列号        szCSDVersion   
As String * 128                   '     Maintenance   string   for   PSS   usage
VB读取硬盘序列号
End Type
VB读取硬盘序列号

相关文章: