C#检测哪些显卡驱动视频 [英] C# detect which graphics card drives video

查看:178
本文介绍了C#检测哪些显卡驱动视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的C#应用​​程序坐落在具有英特尔主板和显卡芯片组预埋盒。 ATI显卡放在为PCI EX preSS。一般的显卡驱动的视频,但是从显卡芯片组,如果ATI卡出现故障,那么视频出来。

My C# application sits on the embedded box which has Intel motherboard and graphics chipset. ATI graphics card is put on to PCI express. Generally graphics card drives the video, but if ATI card fails then the video comes out from graphics chipset.

我要检测的ATI显卡的故障进行诊断。

I have to detect the failure of ATI graphics card for diagnostic purposes.

任何想法/样品$ C $如何做到这一点℃。

Any ideas/sample code on how to do this.

在此先感谢 拉朱

推荐答案

这应该希望得到你开始。

This should hopefully get you started.

添加引用 System.Management ,那么你可以这样做:

Add a reference to System.Management, then you can do this:

ManagementObjectSearcher searcher 
     = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");

    string graphicsCard = string.Empty;
    foreach (ManagementObject mo in searcher.Get())
    {
        foreach (PropertyData property in mo.Properties)
        {
           if (property.Name == "Description")
           {
               graphicsCard = property.Value.ToString();
           }
        }
    }

在我的情况下, graphicsCard 等于

的NVIDIA GeForce 8400 GS(微软   公司 - WDDM 1.1版)

NVIDIA GeForce 8400 GS (Microsoft Corporation - WDDM v1.1)

这篇关于C#检测哪些显卡驱动视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆