C# 有办法区分是否为独立显卡么 RT。想通过程序来判断 PC机内的显卡是否为独立显卡。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在google 中 .net WMI 中可能有你需要的东西.http://www.microsoft.com/china/technet/community/scriptcenter/resources/wmifaq.mspx什么是WMI? WMI就是Windows Management Instrumentation(Windows管理规范)。它是Windows中的一个核心管理技术。.NET中怎样使用WMI?在.NET中,System.Management命名空间提供对系统管理信息和管理事件集合的访问,这些信息和事件是与Windows管理规范(WMI)结构对系统,设备和应用程序设置检测点有关的.一般情况下,应用程序和服务可以使用该命名空间下的ManagementObjectSearcher,ManagementScope,ManagementObject,ObjectQuery等类查询兴趣的管理信息(例如:在磁盘上还有多少剩余可用空间,当前CPU利用率,显示设备信息等)WMI使用类似与SQL语句,甚至可以使用Where子句,更多WMI信息请参见:http://www.microsoft.com/china/technet/community/scriptcenter/resources/wmifaq.mspx下面将在C#用WMI查询显示卡信息:1.新建一个Win应用程序2.添加System.Management.dll引用,并引入该名称空间2.添加一个Button和ListView,并设置相应属性using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Management;namespace WMI信息...{ public partial class Form1 : Form ...{ public Form1() ...{ InitializeComponent(); } private void getInfomation_Click(object sender, EventArgs e)//getInfomation为Button ...{ try ...{ ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\CIMV2", "SELECT * FROM Win32_VideoController"); foreach (ManagementObject info in searcher.Get()) ...{ string[] item1 = ...{ "AdapterCompatibility", info["AdapterCompatibility"].ToString() }; listView1.Items.Add(new ListViewItem(item1)); string[] item2 = ...{ "AdapterDACType", info["AdapterDACType"].ToString() }; listView1.Items.Add(new ListViewItem(item2)); string[] item3 = ...{ "VideoModeDescription", info["VideoModeDescription"].ToString() }; listView1.Items.Add(new ListViewItem(item3)); string[] item4 = ...{ "Caption", info["Caption"].ToString() }; listView1.Items.Add(new ListViewItem(item4)); string[] item5 = ...{ "CurrentBitsPerPixel", info["CurrentBitsPerPixel"].ToString() }; listView1.Items.Add(new ListViewItem(item5)); string[] item6 =...{ "CurrentHorizontalResolution", info["CurrentHorizontalResolution"].ToString() }; listView1.Items.Add(new ListViewItem(item6)); string[] item7 = ...{ "VideoProcessor", info["VideoProcessor"].ToString() }; listView1.Items.Add(new ListViewItem(item7)); //还有很多属性,在此不一一例举,如:Status,PNPDeviceID,Name,Monochrome,MinRefreshRate,MaxRefreshRate,InstalledDisplayDrivers //InfSection,InfFilename,DriverVersion,DeviceSpecificPens,DeviceID,Description } } catch ...{ //肯定会出现异常,但为了演示不处理异常! } } }}利用WMI还可以查询:声音设备信息:(SELECT * FROM Win32_SoundDevice)驱动设备信息:(SELECT * FROM Win32_SystemDriver)串口信息:(SELECT * FROM Win32_Serialport)处理器信息:(SELECT * FROM Win32_Processor)等等本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/hwj383/archive/2007/12/22/1958683.aspx 这里有比较全的获取硬件信息,相信有你想要的,一般都是使用ManagementClass类http://syxc.javaeye.com/blog/728710 "可以确定的。就是你枚举个集成显卡的范围。然后去判断下"---------------------------------------------------请问这个什么意思,意思是 将在目前网上能够搜索到的集成显卡的型号 放到DB么?然后通过WMI 去获得一台PC的显卡型号 和这个比对 如果有则认为这个显卡是集成的 否则认为它是独立显卡? 层的显示隐藏问题~ 急~~~~~~~~~ MsChart刻度值显示问题 asp.netweb应用程序页面取moss的文档库列表数据问题 关于Global类中的Application_Error事件捕捉到的异常,如何知道是程序的哪里发生的呢? Asp.net视频播放问题..在线等..急..提意见者有分.... 谁能给段上传的代码? 如何写HELP帮助呢? 急急 数据绑定演示 请问有没有什么画图的小软件 如何给ASP.NET添加权限 .net 后台删除 js设置的cookie 求高手帮忙 如何获取FLV视频的时间长度。
http://www.microsoft.com/china/technet/community/scriptcenter/resources/wmifaq.mspx
什么是WMI? WMI就是Windows Management Instrumentation(Windows管理规范)。它是Windows中的一个核心管理技术。.NET中怎样使用WMI?在.NET中,System.Management命名空间提供对系统管理信息和管理事件集合的访问,这些信息和事件是与Windows管理规范(WMI)结构对系统,设备和应用程序设置检测点有关的.一般情况下,应用程序和服务可以使用该命名空间下的ManagementObjectSearcher,ManagementScope,ManagementObject,ObjectQuery等类查询兴趣的管理信息(例如:在磁盘上还有多少剩余可用空间,当前CPU利用率,显示设备信息等)WMI使用类似与SQL语句,甚至可以使用Where子句,更多WMI信息请参见:http://www.microsoft.com/china/technet/community/scriptcenter/resources/wmifaq.mspx下面将在C#用WMI查询显示卡信息:1.新建一个Win应用程序2.添加System.Management.dll引用,并引入该名称空间2.添加一个Button和ListView,并设置相应属性using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;using System.Management;namespace WMI信息
...{
public partial class Form1 : Form
...{
public Form1()
...{
InitializeComponent();
} private void getInfomation_Click(object sender, EventArgs e)//getInfomation为Button
...{
try
...{
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\CIMV2", "SELECT * FROM Win32_VideoController");
foreach (ManagementObject info in searcher.Get())
...{
string[] item1 = ...{ "AdapterCompatibility", info["AdapterCompatibility"].ToString() };
listView1.Items.Add(new ListViewItem(item1)); string[] item2 = ...{ "AdapterDACType", info["AdapterDACType"].ToString() };
listView1.Items.Add(new ListViewItem(item2)); string[] item3 = ...{ "VideoModeDescription", info["VideoModeDescription"].ToString() };
listView1.Items.Add(new ListViewItem(item3)); string[] item4 = ...{ "Caption", info["Caption"].ToString() };
listView1.Items.Add(new ListViewItem(item4)); string[] item5 = ...{ "CurrentBitsPerPixel", info["CurrentBitsPerPixel"].ToString() };
listView1.Items.Add(new ListViewItem(item5)); string[] item6 =...{ "CurrentHorizontalResolution", info["CurrentHorizontalResolution"].ToString() };
listView1.Items.Add(new ListViewItem(item6)); string[] item7 = ...{ "VideoProcessor", info["VideoProcessor"].ToString() };
listView1.Items.Add(new ListViewItem(item7));
//还有很多属性,在此不一一例举,如:Status,PNPDeviceID,Name,Monochrome,MinRefreshRate,MaxRefreshRate,InstalledDisplayDrivers
//InfSection,InfFilename,DriverVersion,DeviceSpecificPens,DeviceID,Description
}
}
catch
...{
//肯定会出现异常,但为了演示不处理异常!
}
}
}
}
利用WMI还可以查询:声音设备信息:(SELECT * FROM Win32_SoundDevice)驱动设备信息:(SELECT * FROM Win32_SystemDriver)串口信息:(SELECT * FROM Win32_Serialport)处理器信息:(SELECT * FROM Win32_Processor)等等本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/hwj383/archive/2007/12/22/1958683.aspx
http://syxc.javaeye.com/blog/728710
---------------------------------------------------
请问这个什么意思,意思是 将在目前网上能够搜索到的集成显卡的型号 放到DB么?
然后通过WMI 去获得一台PC的显卡型号 和这个比对 如果有则认为这个显卡是集成的 否则认为
它是独立显卡?