请我帮忙,(信息电脑) [英] Please i need help , ( Information computer )

查看:105
本文介绍了请我帮忙,(信息电脑)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要一个代码来识别主板和哪个版本,名称图形,多少图形总线,以及我位Windows。非常感谢

解决方案

嗨Lahvicka,





请参考以下链接:





使用WMI检索主板序列号



使用C#获取主板信息



获取实际的MotherBoard序列号

< br $>


PC Info





图形信息:



添加参考到System.Management,你可以这样做:



 ManagementObjectSearcher搜索器
= new ManagementObjectSearcher( SELECT * FROM Win32_DisplayConfiguration);

string graphicsCard = string .Empty;
foreach (ManagementObject mo in searcher.Get())
{
foreach (PropertyData property in mo.Properties)
{
if (property.Name == Description
{
graphicsCard = property.Value.ToString();
}
}
}


Deependra Khangarot有很多非常好的链接...我只想添加此CP文章列表:如何获取硬件信息(CPU ID,主板信息,硬盘序列,系统信息......) [ ^ ]



希望它有所帮助。

Hello,
I need a code to identify the motherboard and which version, name graphics, how much graphics bus, and I bit Windows. thank you very much

解决方案

Hi Lahvicka,


Please refer links given below:


Retrieving Motherboard Serial Number using WMI

Getting Motherboard Information using C#

Get actual MotherBoard serial number


PC Info


For Graphics info:

Add a reference to System.Management, then you can do this:

ManagementObjectSearcher searcher 
     = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");

    string graphicsCard = string.Empty;
    foreach (ManagementObject mo in searcher.Get())
    {
        foreach (PropertyData property in mo.Properties)
        {
           if (property.Name == "Description")
           {
               graphicsCard = property.Value.ToString();
           }
        }
    }


Deependra Khangarot has a bunch of really good links...I just want to add this CP article to the list: How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^]

Hope it helps.


这篇关于请我帮忙,(信息电脑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆