Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

in Windows 7 Control Panel, Devices and Printers, system lists connected USB devices and naturally shows their names.

In my case I connect the device of reading of bank cards and a name of this device - USB Swipe Reader

Another, absolutely simple device - USB mouse connected to the laptop, has name Optical Mouse

Very simple question - how can I get these names in program?

I have studied some samples:

Enumerate Installed Devices Using Setup API[^]

Device Information[^]

Simple Device Manager[^]

Any doesn't show these names

In Device Manager I can see these names only as property of 'Bus reported device description'

Thanks in advance.
Posted
Updated 12-Feb-11 1:56am
v2

I believe you need to use WMI to get that info. Google is your friend.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Feb-11 23:47pm    
Looks like the best answer to me; otherwise the answer would take a whole article.
My 5, proposed as the answer.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900