Jitesh Byahut 2/16/2014 1855

Win32_COMApplication in WMI C# Asp.Net

Here we are retrieving COM Application details of Computer.

Use namespace System.Management

using System.Management;

 

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

{

    protected void Page_Load(object sender, EventArgs e)

    {

 ManagementObjectSearcher search1 = new ManagementObjectSearcher("select * from Win32_COMApplication");

 

        foreach (ManagementObject obj in search1.Get())

        {

            if (obj["Name"] != null)

            {

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

            }

        }

    }

}

Demo

View output :

demoimage


Please give your feedback for improving this page