Hi all,
I’m looking for a way to get serial number through SCSI
controllers.
I found a user mode application called diskid32 with source
code, but it can’t do it.
Is there any way to do this, even in kernel mode?
Thanks in advance,
Fernando Roberto da Silva.
Hi,
Take a look at SPTI.c source in the DDK samples.
IOCTL_STORAGE_QUERY_PROPERTY with QueryType = PropertyStandardQuery and
PropertyId = StorageDeviceProperty returns a STORAGE_DEVICE_DESCRIPTOR
structure that includes a SerialNumber for some storage devices.
Also you could use IOCTL_SCSI_PASS_THROUGH to query INQUIRY VPD page 0x80
that should be valid for SCSI devices.
Both ways are possible in kernel mode too.
Best regards,
Valeriy Glushkov
??: Fernando Roberto
???: Windows System Software Devs Interest List
???: 14 ??? 2006 ?. 16:10
???: [ntdev] Serial Number from SCSI disks
Hi all,
I’m looking for a way to get serial number through SCSI
controllers.
I found a user mode application called diskid32 with source
code, but it can’t do it.
Is there any way to do this, even in kernel mode?
Thanks in advance,
Fernando Roberto da Silva.