Custom audio device icon Vista & Win7

Hi all,

Thought I might pop the question here since nobody on wdmaudiodev seems to be able to answer it… :wink: :

How can I set the icon for my VAD in sound control panel ? It is possible to set it manually inside SCP but I’d like to set it
via my INF, searching for examples I have found no working ones… :frowning:

Searching the net I found examples but I haven’t gotten them to work.

I’ve tried adding an iconpath entry for “EP\0” (“{259abffc-50a7-47ce-af08-68c9a7d73366},12”), but still the sound control panel
shows the default mmsys.cpl icon for the device type ??

In my INF I do:

[DevInst.NT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,DevInst.I.Topology
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,DevInst.I.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,DevInst.I.Wave

[DevInst.I.Topology]
AddReg=DevInst.I.Topology.AddReg

[DevInst.I.Topology.AddReg]
HKR,CLSID,%CLSID_Proxy%
HKR,FriendlyName,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”

[DevInst.I.Wave]
AddReg=DevInst.I.Wave.AddReg

[DevInst.I.Wave.AddReg]
HKR,CLSID,%CLSID_Proxy%
HKR,FriendlyName,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”

[Strings]

PKEY_AudioEndpoint_Name=“{A45C254E-DF1C-4EFD-8020-67D146A850E0},2”
PKEY_AudioEndpoint_Icon=“{259ABFFC-50A7-47CE-AF08-68C9A7D73366},12”

If I go directly to the MMDevice entry for the device and set the path (as shown in the INF), it shows up in SCP so it is
not an issue of the icon not being found.

Ideas ?
TIA
/Rob

Bumped. Nobody ? :frowning:

/R

Robert Bielik skrev 2010-11-10 13:39:

Hi all,

Thought I might pop the question here since nobody on wdmaudiodev seems to be able to answer it… :wink: :

> How can I set the icon for my VAD in sound control panel ? It is possible to set it manually inside SCP but I’d like to set it
> via my INF, searching for examples I have found no working ones… :frowning:

Searching the net I found examples but I haven’t gotten them to work.

I’ve tried adding an iconpath entry for “EP\0” (“{259abffc-50a7-47ce-af08-68c9a7d73366},12”), but still the sound control panel
shows the default mmsys.cpl icon for the device type ??

In my INF I do:

[DevInst.NT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,DevInst.I.Topology
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,DevInst.I.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,DevInst.I.Wave

[DevInst.I.Topology]
AddReg=DevInst.I.Topology.AddReg

[DevInst.I.Topology.AddReg]
HKR,CLSID,%CLSID_Proxy%
HKR,FriendlyName,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”

[DevInst.I.Wave]
AddReg=DevInst.I.Wave.AddReg

[DevInst.I.Wave.AddReg]
HKR,CLSID,%CLSID_Proxy%
HKR,FriendlyName,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”

[Strings]

PKEY_AudioEndpoint_Name=“{A45C254E-DF1C-4EFD-8020-67D146A850E0},2”
PKEY_AudioEndpoint_Icon=“{259ABFFC-50A7-47CE-AF08-68C9A7D73366},12”

If I go directly to the MMDevice entry for the device and set the path (as shown in the INF), it shows up in SCP so it is
not an issue of the icon not being found.

Ideas ?
TIA
/Rob


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Have you tried asking here:

WDMAUDIODEV addresses:
Post message: mailto:xxxxx@freelists.org
Subscribe: mailto:xxxxx@freelists.org?subject=subscribe
Unsubscribe: mailto:xxxxx@freelists.org?subject=unsubscribe
Moderator: mailto:xxxxx@freelists.org

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

You might have better luck getting Tim to answer your question over there :slight_smile:

Mark Roddy

On Tue, Nov 16, 2010 at 9:31 AM, Robert Bielik wrote:
> Bumped. Nobody ? :frowning:
>
> /R
>
> Robert Bielik skrev 2010-11-10 13:39:
>>
>> Hi all,
>>
>> Thought I might pop the question here since nobody on wdmaudiodev seems to
>> be able to answer it… :wink: :
>>
>>> How can I set the icon for my VAD in sound control panel ? It is possible
>>> to set it manually inside SCP but I’d like to set it
>>> via my INF, searching for examples I have found no working ones… :frowning:
>>
>> Searching the net I found examples but I haven’t gotten them to work.
>>
>> I’ve tried adding an iconpath entry for “EP\0”
>> (“{259abffc-50a7-47ce-af08-68c9a7d73366},12”), but still the sound control
>> panel
>> shows the default mmsys.cpl icon for the device type ??
>>
>> In my INF I do:
>>
>> [DevInst.NT.Interfaces]
>> AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,DevInst.I.Topology
>> AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,DevInst.I.Wave
>> AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,DevInst.I.Wave
>>
>> …
>>
>> [DevInst.I.Topology]
>> AddReg=DevInst.I.Topology.AddReg
>>
>> [DevInst.I.Topology.AddReg]
>> HKR,CLSID,%CLSID_Proxy%
>> HKR,FriendlyName,%DeviceFriendlyName%
>> HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
>>
>> HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”
>>
>> [DevInst.I.Wave]
>> AddReg=DevInst.I.Wave.AddReg
>>
>> [DevInst.I.Wave.AddReg]
>> HKR,CLSID,%CLSID_Proxy%
>> HKR,FriendlyName,%DeviceFriendlyName%
>> HKR,“EP\0”,%PKEY_AudioEndpoint_Name%,%DeviceFriendlyName%
>>
>> HKR,“EP\0”,%PKEY_AudioEndpoint_Icon%,“%windir%\system32\drivers%DriverFile%,-101”
>>
>> [Strings]
>> …
>> PKEY_AudioEndpoint_Name=“{A45C254E-DF1C-4EFD-8020-67D146A850E0},2”
>> PKEY_AudioEndpoint_Icon=“{259ABFFC-50A7-47CE-AF08-68C9A7D73366},12”
>>
>> If I go directly to the MMDevice entry for the device and set the path (as
>> shown in the INF), it shows up in SCP so it is
>> not an issue of the icon not being found.
>>
>> Ideas ?
>> TIA
>> /Rob
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Mark Roddy wrote:

Have you tried asking here:

WDMAUDIODEV addresses:
Post message: mailto:xxxxx@freelists.org
Subscribe: mailto:xxxxx@freelists.org?subject=subscribe
Unsubscribe: mailto:xxxxx@freelists.org?subject=unsubscribe
Moderator: mailto:xxxxx@freelists.org

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

You might have better luck getting Tim to answer your question over there :slight_smile:

This is part of that Vista audio magic. There are incantations here
that are beyond my meager skills as a Jedi.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Mark Roddy skrev 2010-11-16 20:24:

Have you tried asking here:

WDMAUDIODEV addresses:
Post message: mailto:xxxxx@freelists.org
Subscribe: mailto:xxxxx@freelists.org?subject=subscribe
Unsubscribe: mailto:xxxxx@freelists.org?subject=unsubscribe
Moderator: mailto:xxxxx@freelists.org

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

You might have better luck getting Tim to answer your question over there :slight_smile:

Yes, as I mentioned in my first post (see below) on the subject I’ve already tried asking there… :wink:

/Rob