Usb Disk Formatter Serial Key

12/13/2021by admin
Active6 years, 11 months ago

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

Free Disk Formatter

FAT32 Format USB/SD Card - MiniTool Partition Wizard. In addition to using MiniTool Partition Wizard to convert NTFS to FAT32, this professional partition manager can also be as a dedicated FAT32 formatter to format a disk partition to FAT32 effectively in Windows 10/8/7. Martik USB Disk Formatter 1.1 is available to all software users as a free download (Freeware). Compatibility with this software may vary, but will generally run fine under Microsoft Windows 10, 8, 8.1, 7, Vista and XP on either a 32-bit or 64-bit setup.

I have tried this:

But it doesn't return correct result!

66.1k15 gold badges168 silver badges306 bronze badges
7,04610 gold badges76 silver badges172 bronze badges

2 Answers

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

Fat32 Disk Formatter

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.

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.


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.

Windows Usb Disk Formatter

Check this sample code.

125k13 gold badges314 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.


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

Martik Usb Disk Formatter

Usb Disk Formatter Serial Key

Usb Formatter Windows

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

Comments are closed.