tags:

views:

890

answers:

3

I would like to know how to get a list of the installed audio out devices (waveOut) on a machine

OS: Windows (XP, Vista, 7) Framework: .Net 3.5 Language: c#

When iterating through this list I would like to get information like Identifier, Manufacturer, ... per device.

Any hints?

A: 

use WMI , LINQ to WMI is a great api try to find there

ArsenMkrt
+1  A: 

here is an example

Add a reference to System.Management

ManagementObjectSearcher mo = new ManagementObjectSearcher("select * from Win32_SoundDevice");

foreach (ManagementObject soundDevice in mo.Get())
{
     Console.WriteLine(soundDevice.GetPropertyValue("DeviceId"));
     Console.WriteLine(soundDevice.GetPropertyValue("Manufacturer"));
     // etc                       
}
Roatin Marth
+2  A: 
Kazar