C#实现读取CPU编号厂商主频电压等全部信息

这个C#应用程序能够读取并显示计算机的CPU编号、电压、频率、缓存大小、制造商名称、产品名称、版本信息等关键数据。通过点击按钮,用户可以获取关于CPU的各种详细信息,包括当前电压、外部频率、二级缓存大小、制造商、产品名称、版本、当前使用百分比、最大和当前时钟速度,以及CPU的地址和数据宽度。
摘要由CSDN通过智能技术生成

Form1.Designer.cs:

  1. namespace CPUInfo
  2. {
  3.     partial class Form1
  4.     {
  5.         /// <summary>
  6.         /// 必需的设计器变量。
  7.         /// </summary>
  8.         private System.ComponentModel.IContainer components = null;
  9.         /// <summary>
  10.         /// 清理所有正在使用的资源。
  11.         /// </summary>
  12.         /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  13.         protected override void Dispose(bool disposing)
  14.         {
  15.             if (disposing && (components != null))
  16.             {
  17.                 components.Dispose();
  18.             }
  19.             base.Dispose(disposing);
  20.         }
  21.         #region Windows 窗体设计器生成的代码
  22.         /// <summary>
  23.         /// 设计器支持所需的方法 - 不要
  24.         /// 使用代码编辑器修改此方法的内容。
  25.         /// </summary>
  26.         private void InitializeComponent()
  27.         {
  28.             this.button1 = new System.Windows.Forms.Button();
  29.             this.button2 = new System.Windows.Forms.Button();
  30.             this.button3 = new System.Windows.Forms.Button();
  31.             this.button4 = new System.Windows.Forms.Button();
  32.             this.button5 = new System.Windows.Forms.Button();
  33.             this.button6 = new System.Windows.Forms.Button();
  34.             this.button7 = new System.Windows.Forms.Button();
  35.             this.button8 = new System.Windows.Forms.Button();
  36.             this.button9 = new System.Windows.Forms.Button();
  37.             this.button10 = new System.Windows.Forms.Button();
  38.             this.button11 = new System.Windows.Forms.Button();
  39.             this.button12 = new System.Windows.Forms.Button();
  40.             this.button13 = new System.Windows.Forms.Button();
  41.             this.button14 = new System.Windows.Forms.Button();
  42.             this.label1 = new System.Windows.Forms.Label();
  43.             this.SuspendLayout();
  44.             // 
  45.             // button1
  46.             // 
  47.             this.button1.Location = new System.Drawing.Point(12, 12);
  48.             this.button1.Name = "button1";
  49.             this.button1.Size = new System.Drawing.Size(182, 23);
  50.             this.button1.TabIndex = 5;
  51.             this.button1.Text = "获取CPU编号";
  52.             this.button1.UseVisualStyleBackColor = true;
  53.             this.button1.Click += new System.EventHandler(this.button1_Click);
  54.             // 
  55.             // button2
  56.             // 
  57.             this.button2.Location = new System.Drawing.Point(12, 41);
  58.             this.button2.Name = "button2";
  59.             this.button2.Size = new System.Drawing.Size(186, 23);
  60.             this.button2.TabIndex = 17;
  61.             this.button2.Text = "获取计算机CPU的当前电压";
  62.             this.button2.UseVisualStyleBackColor = true;
  63.             this.button2.Click += new System.EventHandler(this.button2_Click);
  64.             // 
  65.             // button3
  66.             // 
  67.             this.button3.Location = new System.Drawing.Point(12, 70);
  68.             this.button3.Name = "button3";
  69.             this.button3.Size = new System.Drawing.Size(186, 23);
  70.             this.button3.TabIndex = 18;
  71.             this.button3.Text = "获取计算机CPU的外部频率";
  72.             this.button3.UseVisualStyleBackColor = true;
  73.             this.button3.Click += new System.EventHandler(this.button3_Click);
  74.             // 
  75.             // button4
  76.             // 
  77.             this.button4.Location = new System.Drawing.Point(12, 99);
  78.             this.button4.Name = "button4";
  79.             this.button4.Size = new System.Drawing.Size(186, 23);
  80.             this.button4.TabIndex = 19;
  81.             this.button4.Text = "获取计算机CPU的二级缓存";
  82.             this.button4.UseVisualStyleBackColor = true;
  83.             this.button4.Click += new System.EventHandler(
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值