ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_POTSModem"); foreach (ManagementObject mo in mos.Get()) { string t = mo["Caption"].ToString() + " - " + mo["AttachedTo"]; ListControl1.Items.Add(t); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)