using System.Management;
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2","SELECT * FROM Win32_VideoController");
foreach (ManagementObject management_object in searcher.Get() )
{
Response.Write( management_object ["Name"].ToString());
Response.Write(management_object["VideoProcessor"].ToString());
Response.Write(management_object["VideoModeDescription"].ToString());
Response.Write(management_object["AdapterRAM"].ToString());
}
No comments:
Post a Comment