C# detect which graphics card drives video

前端 未结 5 660
萌比男神i
萌比男神i 2021-01-01 01:55

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 v

5条回答
  •  失恋的感觉
    2021-01-01 02:44

    Promoted answer works only for single video card system. When I have ATI and Nvidia cards - WMI query returns ATI even if that monitor is plugged into Nvidia card, dxdiag shows Nvidia and games runs on that card (usage).

    The only way I could determine right video card was using SlimDX to create DX device and examine what card it used. However that .dll weights over 3Mb.

    var graphicsCardName = new Direct3D().Adapters[0].Details.Description;
    

提交回复
热议问题