Jitesh Byahut 2/16/2104 2437

Win32_SoundDevice in WMI C# Asp.Net

Here we are retrieving Sound devices details of Computer.

Use namespace System.Management

using System.Management;

 

public partial class Win_Win32_SoundDevice : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

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

 

        foreach (ManagementObject obj in objsound.Get())

        {

            Response.Write("Name  -  " + obj["Name"] + "</br>");

            Response.Write("Caption  -  " + obj["Caption"] + "</br>");

            Response.Write("Description  -  " + obj["Description"] + "</br>");

            Response.Write("ProductName  -  " + obj["ProductName"] + "</br>");

            Response.Write("Manufacturer  -  " + obj["Manufacturer"] + "</br>");

            Response.Write("DeviceID  -  " + obj["DeviceID"] + "</br></br>");

        }

    }

}

Demo

View output :

demoimage


Please give your feedback for improving this page