Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Heba
 
Posts: n/a
Default want to get USB flash memory serial number

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
  #2   Report Post  
Chuck Tribolet
 
Posts: n/a
Default want to get USB flash memory serial number

USB memory looks like an ATA disk drive to the system. Disk drives can read back their
serial numbers. Look for the interface to get this info from a disk drive. It will be
different for each operating system. The way the drives give back their serial numbers
is different for SCSI and ATA, but probably the same at the operating system
level.

And I'm sure there's a better newsgroup to ask this in than rec.BOATS.electronics.


--
Chuck Tribolet

http://www.almaden.ibm.com/cs/people/triblet

Silicon Valley: STILL the best day job in the world.


"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



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

"Chuck Tribolet" wrote in message
...
USB memory looks like an ATA disk drive to the system. Disk drives can

read back their
serial numbers. Look for the interface to get this info from a disk

drive. It will be
different for each operating system. The way the drives give back their

serial numbers
is different for SCSI and ATA, but probably the same at the operating

system
level.


Every USB device has a uniqe serial number, which has nothing to do with the
serial number of the presented disk. Even a serial-USB dongle has one,
otherwise Windows coould not see the difference between two units plugged in
at the same time, they would both get the same COM port number without
unique serial number.

Meindert


  #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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a mercury serial number Chris General 2 May 26th 04 03:55 AM
Help ID an OMC Outboard RealBoats General 8 May 10th 04 10:03 PM
MERCURY SERIAL NUMBER 9268092 najachat General 0 April 6th 04 04:17 PM
boat hull Number and registration Earleybird47 Cruising 10 November 27th 03 02:13 AM


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 BoatBanter.com.
The comments are property of their posters.
 

About Us

"It's about Boats"

 

Copyright © 2017