I think the goal here is to "match" the device names as presented by WINMM in it's waveOutXXX APIs? It gets a little tricky, because things changed based on whether you are running Windows XP, ME, 2K, or 98! This is what I have found to work well: On 2K and 98 (and for non-USB Audio on all platforms): It's okay to use the "FriendlyName" entry from the "interface" regkey. On Me and XP (USB Audio only): Use the Location Information (SPDRP_LOCATION_INFORMATION) from the corresponding "device" regkey. Thanks. Devendra. At 06:41 AM 3/31/2003, Olivier Roblin wrote: The string 'USB Audio Device' (or another description) comes from the .inf file that you use to install the device. If the device is a generic USB-AUDIO device, and if no custom driver are provided, the string comes from the default installer and is then : 'USB Audio Device'. You cannot have something more accurate without a custom inf file. Olivier ----- Original Message ----- From: "Jerry Evans" <jerry@xxxxxxxxxx> To: <wdmaudiodev@xxxxxxxxxxxxx> Sent: Monday, March 31, 2003 4:00 PM Subject: [wdmaudiodev] Re: Device enumeration > >It is. but is the device description 'USB Audio Device' or something more >descriptive. For example I've got 5 USB audio devices plugged into one of >the workstations and there is no easy way to distinguish between them ... > >----- Original Message ----- >From: "Olivier Roblin" <oroblin@xxxxxxxxxxxx> >To: <wdmaudiodev@xxxxxxxxxxxxx> >Sent: Monday, March 31, 2003 2:16 PM >Subject: [wdmaudiodev] Re: Device enumeration > > >> >>You can get any information stored in registry. In the case I mentioned, >it >>returned the device description in an ANSI string...I think it's what you >>want, no? >> >> >>----- Original Message ----- >>From: "Jerry Evans" <jerry@xxxxxxxxxx> >>To: <wdmaudiodev@xxxxxxxxxxxxx> >>Sent: Monday, March 31, 2003 3:06 PM >>Subject: [wdmaudiodev] Re: Device enumeration >> >> >>> >>>Hi Olivier >>> >>>Thanks for the tip. What, precisely, do you get back from the function ? >>> >>>The stuff is not device specific - it should work with any hardware that >>has >>>a WDM driver. >>> >>> >>>----- Original Message ----- >>>From: "Olivier Roblin" <oroblin@xxxxxxxxxxxx> >>>To: <wdmaudiodev@xxxxxxxxxxxxx> >>>Sent: Monday, March 31, 2003 1:10 PM >>>Subject: [wdmaudiodev] Re: Device enumeration >>> >>> >>>> >>>>Hi Jerry, >>>> >>>>You should use SetupDiGetDeviceRegistryProperty in the function >>>EnumFilters >>>>(enum.cpp). >>>>SetupDiGetDeviceRegistryProperty read registry information for a >>specific >>>>DevInfoData. Ask it for a SPDRP_DEVICEDESC. >>>> >>>>For which device do you write your dll? >>>> >>>> >>>>----- Original Message ----- >>>>From: "Jerry Evans" <jerry@xxxxxxxxxx> >>>>To: <wdmaudiodev@xxxxxxxxxxxxx> >>>>Sent: Monday, March 31, 2003 1:13 PM >>>>Subject: [wdmaudiodev] Device enumeration >>>> >>>> >>>>>Does anyone have a clever way to enumerate KS devices ? I'm >>>experimenting >>>>with the MS KS sample but would like to be able to display available >>>devices >>>>in a friendlier fashion than their internal GUID style identifiers. >How >>>does >>>>DirectX do things ? I've tried manually enumerating the appropriate >>>registry >>>>entries to get the GLOBAL\Device Parameters\FriendlyName value but >this >>>>generally contains things like USB Audio Device which is not so >helpful. >>>>> >>>>>TIA+ATB >>>>> >>>>> >>>>>Jerry ****************** 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.de/