Compact FLash Serial Numbers

  • Thread starter Thread starter Greg Martin
  • Start date Start date
G

Greg Martin

Hi all,

Under CE, we can read the serial number from a compact flash card using
the IOCTL_DISK_GET_STORAGE_ID call. Does anybody know how to do it under
XPE? We've tried a few IOCTL calls, but most don't seem to return any
data in the relevant sections.

Thanks,

Greg Martin.
 
Greg,

Did yu mean IOCTL_HAL_GET_DEVICEID? I don't recall IOCTL_DISK_GET_STORAGE_ID
code, though I could have just missed it.

You can use GetFileInformationByHandle API (there is dwVolumeSerialNumber
filed of the BY_HANDLE_FILE_INFORMATION structured returned).
Also, try this http://www.winsim.com/diskid32/diskid32.html posted by
Slobodan a while ago. You will find useful sources following the link.

KM
 
Cheers. I'll give it a go.
Greg,

Did yu mean IOCTL_HAL_GET_DEVICEID? I don't recall IOCTL_DISK_GET_STORAGE_ID
code, though I could have just missed it.

You can use GetFileInformationByHandle API (there is dwVolumeSerialNumber
filed of the BY_HANDLE_FILE_INFORMATION structured returned).
Also, try this http://www.winsim.com/diskid32/diskid32.html posted by
Slobodan a while ago. You will find useful sources following the link.

KM
 
Back
Top