Home > OS >  How to obtain video card type in c #, the independent graphics card or integrated graphics
How to obtain video card type in c #, the independent graphics card or integrated graphics

Time:10-27

How to obtain video card type in c #, the independent graphics card or integrated graphics

CodePudding user response:

Public string GetVideoPNPID ()
{
String st="";
ManagementObjectSearcher MOS=new ManagementObjectSearcher (" Select * from Win32_VideoController ");
Foreach (ManagementObject mo in MOS. The Get ())
{
St=mo [r]. "PNPDeviceID" ToString ();
}
Return st.
}
  • Related