2012-04-23 81 views
2

如何获取有关系统设备驱动程序的信息。 像Manufacturer,hardwareID,DriverAssembly Version of that device 在.NET编程如何获取有关设备驱动器的信息

+0

的[Windows机器上获取PC(系统)信息 - C#脚本]可能重复(http://stackoverflow.com/questions/4742389/get-pc-system -information-on-windows-machine -c-sharp-script) – MSalters 2012-04-23 14:27:59

回答

0

为了达到上述目的,C#中的ManagementObjectSearcher足够好。您只需要使用System.Management包含
;
使用波纹管代码 -

ManagementObjectSearcher mos = 
        new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity WHERE ClassGuid = '"+deviceGuid+"'");