2012-04-23 79 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+"'");