我使用此代码查找图形卡:
ManagementObjectSearcher searcher =
new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");
string graphicsCard = "";
foreach (ManagementObject mo in searcher.Get())
{
foreach (PropertyData property in mo.Properties)
{
if (property.Name == "Description")
{
graphicsCard += property.Value.ToString();
}
}
}
但结果是:Nvidia Quadro K6000
如何查找所有图形卡?
答案 0 :(得分:7)
the MSDN page的第一行是:
[自Windows Server 2008起,Win32_DisplayConfiguration WMI类不再可用。而是使用Win32_VideoController,Win32_DesktopMonitor和CIM_VideoControllerResolution类中的属性。]
所以我建议你从Win32_VideoController开始。