try { // string s = ""; ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_PnPEntity"); foreach (ManagementObject queryObj in searcher.Get()) { string s = ""; s = queryObj["Caption"].ToString(); } } catch (ManagementException e1) { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)