F
FreddyJr
Guest
I'm working on completing a wmd sound card driver using the msvad examples as a starting point and its going pretty well.
I need to set custom icons for the driver that will appear both in the Device manager and in the "Sound" panel where you specify default drivers for the different audio functions.
After some searching I ran across an example of doing the below:
. . .
AddReg=MYCARD.AddReg
. . .
[MYCARD.AddReg]
HKR,Branding,icon,,"c:\windows\system32\drivers\mycard.ico"
This has me part way there, I now see our icons in the Device manager and when you hit Properties in the Sound panel.
However the default icon's are still shown in the Sound panel dialog where you select your default device.
But in that panel if you select our device and then click the "Properties" button, a panel comes up with a "Change Icon" button.
Clicking that allows me to browse and select the same icon file we used for the "Branding" line above, and after doing that our icon's are shown in the Sound selection panel.
Also in the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render
there is now a value that is assigned to: C:\Windows\System32\drivers\mycard.ico
I'm assuming that I need to add the correct HKR lines to the installation script to set that registry value.
Can anyone give me some tips on how to do that or point to a link that explains how?
Thanks,
Fred
Continue reading...
I need to set custom icons for the driver that will appear both in the Device manager and in the "Sound" panel where you specify default drivers for the different audio functions.
After some searching I ran across an example of doing the below:
. . .
AddReg=MYCARD.AddReg
. . .
[MYCARD.AddReg]
HKR,Branding,icon,,"c:\windows\system32\drivers\mycard.ico"
This has me part way there, I now see our icons in the Device manager and when you hit Properties in the Sound panel.
However the default icon's are still shown in the Sound panel dialog where you select your default device.
But in that panel if you select our device and then click the "Properties" button, a panel comes up with a "Change Icon" button.
Clicking that allows me to browse and select the same icon file we used for the "Branding" line above, and after doing that our icon's are shown in the Sound selection panel.
Also in the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render
there is now a value that is assigned to: C:\Windows\System32\drivers\mycard.ico
I'm assuming that I need to add the correct HKR lines to the installation script to set that registry value.
Can anyone give me some tips on how to do that or point to a link that explains how?
Thanks,
Fred
Continue reading...