I\'m having a really hard time figuring out how to do this. Basically, all I want to do is read all the devices that are attached to the machine and also read the driver man
If you are looking for a specific kind of device information (suppose only Bluetooth) from your machine - then
"ManagementObjectSearcher" in c# is good enough. You just need to include
using System.Management;
put a condition search with it as following
ManagementObjectSearcher mos =
new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity WHERE ClassGuid = '"+deviceGuid+"'");
here "deviceGuid" is the device class type(a guid value [same for all PCs]).