jcec
2010-02-04 12:22:05 UTC
Hi,
How can I get programatically "sound device names" (XP), "friendly
names" and "descriptions" (Seven) from the "device instance IDs" such as
devcon shows me ?
Explaining better:
I have two USB handsets of the same model plugged in my PC.
I already know that USB vendor ID for those handsets is 06E6, so I run
devcon in a command prompt asking for all the USB devices of that vendor and
I get the following list of "device instance IDs":
C:\PUBLIC\devcon\i386>devcon find usb\vid_06e6*
USB\VID_06E6&PID_F210\222648291361 : USB Composite
Device
USB\VID_06E6&PID_F210\5&4A29751&0&5 : USB Composite
Device
USB\VID_06E6&PID_F210&MI_00\6&15F2C20&0&0000 : USB Audio
Device
USB\VID_06E6&PID_F210&MI_00\6&1AFD3EB&0&0000 : USB Audio
Device
USB\VID_06E6&PID_F210&MI_03\6&15F2C20&0&0003 : USB Human
Interface Device
USB\VID_06E6&PID_F210&MI_03\6&1AFD3EB&0&0003 : USB Human
Interface Device
6 matching device(s) found.
If I am running Windows XP I can read (via Control Panel) the following
"sound device names" for the 2 handsets, for both mic and spkr devices:
"USB audio device"
"USB audio device (2)"
If I am running Windows 7 I can read (via Control Panel) the following
"sound device names" for the 2 handsets, for mic and spkr devices:
"Handset" and "USB audio device" (can we call them "friendly
name" and "description" ?)
"Handset" and "2- USB audio device" (can we call them "friendly
name" and "description" ?)
So, how can I get programatically the above "sound device names" (XP),
"friendly names" and "descriptions" (Seven) from the "device instance IDs" ?
Many thanks.
How can I get programatically "sound device names" (XP), "friendly
names" and "descriptions" (Seven) from the "device instance IDs" such as
devcon shows me ?
Explaining better:
I have two USB handsets of the same model plugged in my PC.
I already know that USB vendor ID for those handsets is 06E6, so I run
devcon in a command prompt asking for all the USB devices of that vendor and
I get the following list of "device instance IDs":
C:\PUBLIC\devcon\i386>devcon find usb\vid_06e6*
USB\VID_06E6&PID_F210\222648291361 : USB Composite
Device
USB\VID_06E6&PID_F210\5&4A29751&0&5 : USB Composite
Device
USB\VID_06E6&PID_F210&MI_00\6&15F2C20&0&0000 : USB Audio
Device
USB\VID_06E6&PID_F210&MI_00\6&1AFD3EB&0&0000 : USB Audio
Device
USB\VID_06E6&PID_F210&MI_03\6&15F2C20&0&0003 : USB Human
Interface Device
USB\VID_06E6&PID_F210&MI_03\6&1AFD3EB&0&0003 : USB Human
Interface Device
6 matching device(s) found.
If I am running Windows XP I can read (via Control Panel) the following
"sound device names" for the 2 handsets, for both mic and spkr devices:
"USB audio device"
"USB audio device (2)"
If I am running Windows 7 I can read (via Control Panel) the following
"sound device names" for the 2 handsets, for mic and spkr devices:
"Handset" and "USB audio device" (can we call them "friendly
name" and "description" ?)
"Handset" and "2- USB audio device" (can we call them "friendly
name" and "description" ?)
So, how can I get programatically the above "sound device names" (XP),
"friendly names" and "descriptions" (Seven) from the "device instance IDs" ?
Many thanks.