Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
"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 |
#4
![]() |
|||
|
|||
![]()
"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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading a mercury serial number | General | |||
Help ID an OMC Outboard | General | |||
MERCURY SERIAL NUMBER 9268092 | General | |||
boat hull Number and registration | Cruising |