Find the Modem which is attached to Computer

Create new project - > now add reference ? System.Management;

Code is:


using System.Management;


ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_POTSModem");
foreach (ManagementObject mo in mos.Get())
{
    listBox1.Items.Add(mo["Caption"].ToString());
}
Ebook Download
View all
Learn
View all