Disk Identification Question

I try to identify the disk devices.

The IOCTL_STORAGE_QUERY_PROPERTY returns the different parameters.
The problems are:
a. The disks that I test return the different parameters!?! Any device
returns full list :frowning: (see example bellow).
b. The documentation doesn’t describe the meaning of some parameters
(probably MSDN is not sufficient)

My questions are:

  1. Does SerialNumber, if present, is original for every disk or it is
    the same for the same disks?
  2. Does the following combination identify the disk: VendorId+
    ProductId+ ProductRevision+ SerialNumber, if SerialNumber is present?
  3. Which other parameters (requests, IOCTLs) may assist in the disk
    identification?

Regards,
Michael.

/////////////////////////////////////////////////
The example dump of IOCTL_STORAGE_QUERY_PROPERTY for PhysicalDrives:

Drv \.\PhysicalDrive0
Dev Type:(0x0)Direct Access Device, BusType:(3)ATA, Removable
Media:No
ProductId:Maxtor 6Y080M0
ProductRevision:YAR51HW0
SerialNumber:32594238414b4330202020202020202020202020
Drv \.\PhysicalDrive1
Dev Type:(0x0)Direct Access Device, BusType:(7)USB, Removable
Media:No
VendorId:M-Sys
ProductId:DiskOnKey
ProductRevision:3.04
Drv \.\PhysicalDrive2
Dev Type:(0x0)Direct Access Device, BusType:(7)USB, Removable
Media:Yes
VendorId:OTi
ProductId:Flash Disk
ProductRevision:1.11

Try the INQUIRY data fields.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Grabelkovsky, Michael” <michael.grabelkovsky>
To: “Windows System Software Devs Interest List”
Sent: Monday, June 12, 2006 5:28 PM
Subject: [ntdev] Disk Identification Question

I try to identify the disk devices.

The IOCTL_STORAGE_QUERY_PROPERTY returns the different parameters.
The problems are:
a. The disks that I test return the different parameters!?! Any device
returns full list :frowning: (see example bellow).
b. The documentation doesn’t describe the meaning of some parameters
(probably MSDN is not sufficient)

My questions are:
1. Does SerialNumber, if present, is original for every disk or it is
the same for the same disks?
2. Does the following combination identify the disk: VendorId+
ProductId+ ProductRevision+ SerialNumber, if SerialNumber is present?
3. Which other parameters (requests, IOCTLs) may assist in the disk
identification?

Regards,
Michael.

/////////////////////////////////////////////////
The example dump of IOCTL_STORAGE_QUERY_PROPERTY for PhysicalDrives:

Drv \.\PhysicalDrive0
Dev Type:(0x0)Direct Access Device, BusType:(3)ATA, Removable
Media:No
ProductId:Maxtor 6Y080M0
ProductRevision:YAR51HW0
SerialNumber:32594238414b4330202020202020202020202020
Drv \.\PhysicalDrive1
Dev Type:(0x0)Direct Access Device, BusType:(7)USB, Removable
Media:No
VendorId:M-Sys
ProductId:DiskOnKey
ProductRevision:3.04
Drv \.\PhysicalDrive2
Dev Type:(0x0)Direct Access Device, BusType:(7)USB, Removable
Media:Yes
VendorId:OTi
ProductId:Flash Disk
ProductRevision:1.11

—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</michael.grabelkovsky>