设备友好名称 [英] Device Friendly Name

查看:254
本文介绍了设备友好名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要从代码中获取设备友好名称.我可以从DEV_BROADCAST_DEVICEINTERFACE结构获取设备名称.我无法找到是否有任何系统调用来获取设备友好名称或从设备名称转换为友好名称.

我在网上进行了搜索,但快要死了.请帮忙.

预先感谢,
Shishir

Hi,

I need to get device friendly name from my code. I am able to obtain the device-name from DEV_BROADCAST_DEVICEINTERFACE structure. I am not able to find if there is any system call to obtain the device friendly name or to get a conversion from device name to friendly name.

I ran a search on the net but I am hitting a dead-end. Please help.

Thanks in advance,
Shishir

推荐答案

尝试在注册表中查找内容-您可能需要"DisplayName"变量
Try looking up stuff in the registry - You''ll probably want the "DisplayName" variable
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HDAudBus]
"Start"=dword:00000003
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,52,\
  00,49,00,56,00,45,00,52,00,53,00,5c,00,48,00,44,00,41,00,75,00,64,00,42,00,\
  75,00,73,00,2e,00,73,00,79,00,73,00,00,00
"DisplayName"="Microsoft UAA Bus Driver for High Definition Audio"
"Group"="Extended Base"
"DriverPackageId"="hdaudbus.inf_amd64_neutral_c8d90bd70af55772"



问候
Espen Harlinn



Regards
Espen Harlinn


这篇关于设备友好名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆