Hey All
The provider of our usb memory sticks very kindly gave us the software to pre-program the memory sticks with serial numbers, How do i go about reading this serial number in vb.net winform application
Thanks in advance Carl
Printable View
Hey All
The provider of our usb memory sticks very kindly gave us the software to pre-program the memory sticks with serial numbers, How do i go about reading this serial number in vb.net winform application
Thanks in advance Carl
Well, I imagine those appear the same as a drive to the .Net framework, so if you know how to get a serial number from a hard drive, the same may apply to flash sticks.
no ive already done that, and the serial numbers are different.
ive seen a vb6 program that is ment to show the serial number via HID (HUMAN INTERFACE DEVICE) programming but it dosnt work on my win xp box for some reason....
Damn USB Stick manufacturers.... can't follow protocol can they..
well i think they are but i dont know....
all i know is that the serial is 16 digits long alpha nurmeric
if it is a HID device, you can use this:Quote:
Originally posted by carlblanchard
Hey All
The provider of our usb memory sticks very kindly gave us the software to pre-program the memory sticks with serial numbers, How do i go about reading this serial number in vb.net winform application
Thanks in advance Carl
http://www.lvr.com/hidpage.htm
to read the serial # or get its PID and VID.
ive already tried that and it dosnt work for some reason
just comes back cant find device.
then probably because you used a wrong PID and VID.Quote:
Originally posted by carlblanchard
ive already tried that and it dosnt work for some reason
just comes back cant find device.
ok heres the problem
in windows 2000 the device is reconised as USB Device (HID)
in windows xp its reconised as a hard drive (not hid)
this is confirmed because the software the manufactor gave us for programming the serial numbers and drive names etc etc
so is there a way to read the hardware serial number of disk drives ? the serial is a 16 digit number, ive tried using Management.ManagementClass("Win32_LogicalDisk")
but that dosnt return the 16 digit number im after