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.
}