- 1、本文档共23页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
全面介绍硬盘代码利用,希望对大家有用(国外英文资料)
全面介绍硬盘代码利用,希望对大家有用(国外英文资料)
Before detailed introduced the hard disk to each code manipulation, let everyone clear code disk, one-sided introduced back hard code, useful for every one. My desires Internet has a lot of code for hard disk serial number control code, in great part can only obtain the serial number of the logical partition, not hard code using the physical serial number;
Or if you can get a physical number, you need to take a DLL file written by VC... We know that the serial number of the logical partition is conceived when the FORMAT is in place, and the FORMAT will change from the beginning, which is fatal to the program that applied for the unique identification code.
The VB code above USES the Windows API to get a lot of physical hard drive code, including a single number from the hard drive code. I lost this code from CSDN BBS, the original author is unknown. Ive modified and added a little bit, and Ive created two functions that are commonly used: GetDiskVolume, GetHardDiskInfo...
Private Const MAX_IDE_DRIVES As Long = 4 Max number of drives primary/secondary, master/slave topology
Private Const READ_ATTRIBUTE_BUFFER_SIZE As Long = 512
Private Const IDENTIFY_BUFFER_SIZE As Long = 512
Private Const READ_THRESHOLD_BUFFER_SIZE As Long = 512
Private Const DFP_GET_VERSION As Long = h74080
Private Const DFP_SEND_DRIVE_CO is pretty MMAND
Private Const DFP_RECEIVE_DRIVE_DATA As Long = h7c088
Private Type GETVERSIONOUTPARAMS
BVersion As Byte Binary driver version.
BRevision As Byte Binary driver revision.
BReserved As Byte Not used.
BIDEDeviceMap As Byte Bit map of IDE devices.
Bit mask of driver capabilities.
DwReserved (3) As Long For future use.
End Type
Private Const CAP_IDE_ID_FUNCTION As Long = 1 ATA ID co sister and supported
Private Const CAP_IDE_ATAPI_ID As Long = 2 ATAPI ID co sister and supported
Private Const CAP_IDE_EXECUTE_SMART_FUNCTION As Long = 4 SMART commannds supported
Private Type IDEREGS
BFeaturesReg As Byte , informs the for specifyin
文档评论(0)