Sandisk Serial Number Format

Posted on -

SanDisk RescuePro or SanDisk RescuePro Deluxe serial number, activation code or crack is not recommended, why not choose its free alternative? It's not recommended to use SanDisk RescuePro crack for People who lost precious pictures, documents, music, videos and mails on a formatted hard drive, corrupted USB.

  1. Sandisk Serial Number Check
  2. How To Format Sandisk Usb
  3. Samsung Serial Number Format
Active6 years, 11 months ago

How can I retrieve the manufacturer serial number of an USB flash drive in Delphi ?

I have tried this:

But it doesn't return correct result!

TLama
66.2k15 gold badges169 silver badges308 bronze badges
opc0deopc0de
7,05110 gold badges76 silver badges172 bronze badges

2 Answers

opc0de, according to your comments i will give you a sample using the WMI.

First, the code which you posted (using the GetVolumeInformation function) return the serial number assigned by windows when you format a disk.

The good news are which exist two wmi classes wich exposes a property called SerialNumber which store the Number allocated by the manufacturer to identify the physical media. these classes are Win32_DiskDrive and Win32_PhysicalMedia.

Sandisk

Now the bad news, unfortunately this classes is not associated directly with the letter (C,D,E,F...) of the logical disk, because that you must call to another wmi classes to find the link between the logical driver letter and the Physical drive.

so you must find this link previous to obtain the serial number. the sequence to find this association is like this.

Win32_DiskPartition ->Win32_LogicalDiskToPartition ->Win32_DiskDrive

this is the code to obtain the serial number of a usb using the Win32_DiskDrive class.

By the way some time ago i wrote an application called WMI Delphi Code Creator which can help you to generate delphi code to access the system info using the WMI.

Sandisk Serial Number Check

UPDATE

Some drivers of the USB disks does not expose the manufacturer serial number on the Win32_DiskDrive.SerialNumber property, so on this cases you can extract the serial number from the PnPDeviceID property.

Check this sample code.

How To Format Sandisk Usb

RRUZ

Samsung Serial Number Format

RRUZ
125k13 gold badges315 silver badges446 bronze badges

You can try the component TDiskInfo from GLib to Get the SerialNumber.
It not use WMI, but in some system (disk types) not retrieve the number.
Try it. It's free.

Regards.

Germán Estévez -Neftalí-Germán Estévez -Neftalí-

Not the answer you're looking for? Browse other questions tagged windowsdelphiusb or ask your own question.