There is a manufacturer's serial number on SD cards, and there are a number of pages on the 'net that describe how to retrieve it on various mobile devices (including this one). But I need to retrieve it under desktop versions of Windows, and the code that works for mobile versions of Windows doesn't seem to translate.
The question: how do you programmatically retrieve the SD card manufacturer's serial number from an SD card under desktop Windows?
EDIT: From what I gather, this can be done using the DeviceIoControl
's IOCTL_SFFDISK_DEVICE_COMMAND
to send command 10 from the SD Card specs, but it's unreliable -- it only works with certain non-USB card readers, and only with certain drivers for those readers. That makes it useless for our purposes. Maybe someone else can get some use from the information.