Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Posted

1 solution

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"


Regards
Espen Harlinn
 
Share this answer
 
Comments
GoonerGator 11-Jan-11 16:35pm    
Thanks for the reply Espen.

True, Registry is one way of doing it. How-ever for better maintenance of the code and possible issues with platform changes, I would prefer steering clear of registries.

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