Tag: serial number

C#/ Native:使用SCSI PassThrough读取硬盘串口

我编写了三种不同的方法,使用本机CreateFile和DeviceIoControl调用来检索HDD序列号(而不是型号)。 第一个使用SMART ,第二个使用Storage Query ,第三个使用SCSI PassThrough 。 我的大多数代码都基于此线程的内容(带有一些修复和改进)。 以下是我使用diskid32实用程序获得的结果: Trying to read the drive IDs using physical access with admin rights Drive Model Number________________: [ST975XXXXX] Drive Serial Number_______________: [ 6WS2XXXX] Trying to read the drive IDs using physical access with zero rights Product Id = [ST975XXXXX] Serial Number = [6WS2XXXX] Trying to read the drive […]