如何在VC中获取设备显示名称?
我可以使用 GetRawInputDeviceList 成功查询我的系统以获取原始设备列表,并使用 GetRawInputDeviceInfo 获取有关各个设备的详细信息。
但是,当查询名称时,GetRawInputDeviceInfo 返回“设备路径”。我想要得到的是
设备管理器中显示的“显示名称”->鼠标和其他指点设备 -> (鼠标设备)->属性->详情->显示名称
这怎么可能?
TIA
I can successfully query my system with GetRawInputDeviceList to get a list of raw devices and GetRawInputDeviceInfo to get detailed info on individual devices.
However GetRawInputDeviceInfo returns the "device path" when the name is queried. What I would like to get is the "display name" as show in the
Device Manager -> Mice and Other Pointing devices -> (mouse device) -> Properties -> Details -> Display Name
How is this possible?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来“RIDI_DEVICENAME”是注册表中的路径。因此,我可以使用它来进行注册表查找并从“DeviceDesc”键中获取最后一个分隔元素。
谢谢 - 我希望对其他人有帮助。
Looks like the "RIDI_DEVICENAME" is a path in the registry. So I can use this to do a Registry look up and grab the last delimted element form the 'DeviceDesc' key.
Thanks - I hope helps someone else.
您尝试过吗,
uiCommand = RIDI_DEVICENAME
?GetRawInputDeviceInfo
参考:http://msdn.microsoft.com/en-us/library/windows/desktop/ms645597(v=VS.85).aspxDid you try,
uiCommand = RIDI_DEVICENAME
?GetRawInputDeviceInfo
Reference: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645597(v=VS.85).aspx