View Single Post
  #4   Report Post  
Meindert Sprang
 
Posts: n/a
Default want to get USB flash memory serial number

"Heba" wrote in message
om...
Hi all
i want a way by c++ or assembly to get the USB flash memory serial
number
i don't know if it possiple or not i hope i can find a way for that as
fast as possible
and thank u all
good bye
Heba


Strange question for this newsgroup. But ok, do you mean the standard disk
serial number or the USB device serial number? The latter is a bit tricky to
read. Every USB device must have a unique serial number for windows to
distinguish between devices. I don't know if windows offers an API call to
read the serial number of a USB device. I know it shows up in the registry,
in HKLM\system\currentcontrolset\enum\usb\vid_xxxx&pi d_yyyy where xxxx and
yyyy are the vendor and product IDs of the device in question.

Meindert