如何獲取有關係統設備驅動程序的信息。 像Manufacturer,hardwareID,DriverAssembly Version of that device
在.NET編程如何獲取有關設備驅動器的信息
2
A
回答
2
我相信這個問題Get PC System Information on Windows Machine,特別是回答處理WMI和How To Almost Everything IN WMI - Part 3: Hardware得到你所需要的。
+0
另外System.Management答案[獲取有關計算機在域中的信息](http://stackoverflow.com/questions/971321/c-get-information- about-computer-in-domain)可能會有所幫助。 – 2012-04-23 13:40:14
0
爲了達到上述目的,C#中的ManagementObjectSearcher足夠好。您只需要使用System.Management包含
;
使用波紋管代碼 -
ManagementObjectSearcher mos =
new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity WHERE ClassGuid = '"+deviceGuid+"'");
的[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