Discussion:
How to get HardwareId of a USB device
(too old to reply)
sree
2009-10-12 09:58:01 UTC
Permalink
Hi friends,
i want to get the Hardware id of a USB drive whenever user
connect it to the system. The HardwareID is apprearing at
"Enum\USB\Vid_058f&Pid_6387\BPRNBG45" registry key. i can access this key by
accessing registry keys. but whenever i connect the USB to another port it is
generating another key with same hardwareid. is this possible to know using
wmi or any other class..

How can achieve this using vc++6.0. i am new to this language. please help
me on this.
sree
2009-10-12 12:51:01 UTC
Permalink
Hi friends,
I got deviceID by using wmi class "win32_USBHub". now i want
hardware id of the USB device. how can i get Hardware id by using this device
id....DDK header files are not working. i think i didnt have those..(using
vc++6.0,xp).
please help how can get the hardware id?

Thanks in advance..
Post by sree
Hi friends,
i want to get the Hardware id of a USB drive whenever user
connect it to the system. The HardwareID is apprearing at
"Enum\USB\Vid_058f&Pid_6387\BPRNBG45" registry key. i can access this key by
accessing registry keys. but whenever i connect the USB to another port it is
generating another key with same hardwareid. is this possible to know using
wmi or any other class..
How can achieve this using vc++6.0. i am new to this language. please help
me on this.
Ben Voigt [C++ MVP]
2009-10-12 16:12:30 UTC
Permalink
Post by sree
Hi friends,
I got deviceID by using wmi class "win32_USBHub". now i want
hardware id of the USB device. how can i get Hardware id by using this device
id....DDK header files are not working. i think i didnt have those..(using
vc++6.0,xp).
please help how can get the hardware id?
Try SetupDiGetClassDevs and related functions
http://msdn.microsoft.com/en-us/library/ms792959.aspx
Post by sree
Thanks in advance..
Post by sree
Hi friends,
i want to get the Hardware id of a USB drive whenever user
connect it to the system. The HardwareID is apprearing at
"Enum\USB\Vid_058f&Pid_6387\BPRNBG45" registry key. i can access this key by
accessing registry keys. but whenever i connect the USB to another port it is
generating another key with same hardwareid. is this possible to know using
wmi or any other class..
How can achieve this using vc++6.0. i am new to this language. please help
me on this.
Loading...