如何获取windows7控制面板设备名称 [英] How to get windows7 control panel device name
问题描述
Windows 7控制面板,设备和打印机中的
,系统列表连接USB设备并自然显示其名称。
在我的情况下,我连接读取银行卡的设备和该设备的名称 - USB刷卡读卡器
另外,绝对简单设备 - USB鼠标连接到笔记本电脑,有光学鼠标名称
非常简单的问题 - 如何在程序中获取这些名称?
我研究了一些样本:
使用安装程序API枚举已安装的设备 [ ^ ]
设备信息 [ ^ ]
简单设备管理器 [ ^ ]
Any doesn' t显示这些名称
在设备管理器中,我只能将这些名称视为总线报告设备描述的属性
提前谢谢。
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.
推荐答案
我相信您需要使用WMI来获取该信息。谷歌是你的朋友。
I believe you need to use WMI to get that info. Google is your friend.
http://stackoverflow.com/questions/3438366/setupdigetdeviceproperty [ ^ ]
这篇关于如何获取windows7控制面板设备名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!