Hi Yann. I have not tried out with more than one device, and the drivers that i used to test on was from the DDK build (msvad.sys). I just want to verify that this componentid feature will still be valid in Vista. As for multiple devices, what i intended to do was to dynamically creates the Name GUID (no change to vendor and product id) for every single device, and then write unique names to registry(MediaCategories) so that they all will have a different name. Yet to test this out on Windows XP, but based on what Richard described, i believe it should works... Thanks! Kenny. Yann Hamiaux <YHamiaux@xxxxxxxxxxxxx> wrote: Hi Kenny, When you said there's no problem with Windows XP? I am curious to know what have you tried? Are you able to distinguish which mixer belong to your symbolic name even if you have more than one exact same device (same vendor id, product id)? If so, you must get differents GUID for those devices? yann, -----Original Message----- From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]On Behalf Of Kenny Ong Sent: February 28, 2006 4:05 AM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: How to bind a symbolic link to a mixer, mid i or wave device name? Hi Richard. I tried the ComponentID method on Vista CTP 5270 and 5308, but it wasn't working. Any idea what happens here? By the way, there isn't any problem with Windows XP... Thanks! Kenny. -----Original Message----- From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]On Behalf Of Richard Fricks Sent: February 9, 2006 12:12 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: How to bind a symbolic link to a mixer, midi or wave device name? Windows XP and following supports the property KSPROPERTY_GENERAL_COMPONENTID. This allows audio devices to uniquely identify themselves by controlling the value of their friendly name. The basic idea is that you write your unique friendly name to the registry: HKLM\System\CurrentControlSet\Control\MediaCategories\\Name = "your unique device name". This value can bet set in your devices INF file using a statement like [xxxxx.AddReg] HKLM,"SYSTEM\CurrentControlSet\Control\MediaCategories\{946A7B1A-EBBC-42 2a-A81F-F07C8D40D3B4}",Name,,"My unique device name" Or you can write this registry value when your driver loads in its initialization routine. Note that the guid above needs to be unique - run guidgen.exe to create one. You then implement support for the KSPROPERTY_GENERAL_COMPONENTID property in your driver. KS.H includes a macro DEFINE_KSPROPERTY_ITEM_GENERAL_COMPONENTID that you can use to help define this. The audio system will use the Name GUID you return in the KSCOMPONENTID structure to look up a "Name" key in the registry. For this example, the guid you would return from this property call would be "{946A7B1A-EBBC-422a-A81F-F07C8D40D3B4}". This should address the issue of how to get your device to uniquely identify itself. If the above isn't working or is but still doesn't address the issue let me know as I would like to understand why. Thanks, Richard Fricks Technical Lead, Microsoft DDK -----Original Message----- From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of uwe kirst Sent: Thursday, February 09, 2006 8:30 AM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: How to bind a symbolic link to a mixer, midi or wave device name? Yann Hamiaux wrote: >So far, I've been able to enumerate all MIDI symbolic link and get their >friendly name. However, when I have 2 devices with the same VID and PID, the >friendly name is exactly the same. While when I look to the list mixer name >they do have a different name "Mixer Devic e" and "Mixer Device (2)". > Thats probably the situation under XP -> the instance id is added by windows atomatically. Under Vista the instance id is missing (thats at least my experiance). I tried to add it within my driver, but I found no reliable way of doing so. If you have two physical identical devices and you install them one after each other while the other is not powererd, they will get the same name. If you now power them both, they will have the same name, because the name is set during install not during driver load. I personally would prefer to add the unique id owned by the device to the friendly name, but this seem to be impossible because the names are added during install by the .inf file. If no other idea comes to my mind I think I will try to add a random (unique) name by my driver rather by .inf file. Maybee that will help? >So far, >I deal with some SetupDi... functions to enumerate all devices in a >category. I also, kind of reverse-engineer the GUID I need for the >enumeration by looking to the registry under >"Local_Machine\System\CurrentControlSet\Control\DeviceClasses\". Maybe there >is a .h file I should look to have a proper list of these GUID? > > > I was told that you generate these GUIDs by yourself with guigen. They are added during installation by the .inf file. The header file only cointains some predefined (by microsoft) device types. Uwe ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/ ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/ ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/ ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/ ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/ --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses!