用C#编程怎么样实现提取原始的物理MAC地址(不是更改过的MAC地址)
1个回答
展开全部
/// public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.TextBox txtMac; private System.Windows.Forms.TextBox txtIP; private System.Windows.Forms.TextBox txtName; private System.Windows.Forms.Button btnGet; private System.Windows.Forms.Button btnExit; private System.Windows.Forms.TextBox txtCPUInfo; private System.Windows.Forms.Label label4; /// /// 必需的设计器变量。 /// private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.txtMac = new System.Windows.Forms.TextBox(); this.txtIP = new System.Windows.Forms.TextBox(); this.txtName = new System.Windows.Forms.TextBox(); this.btnGet = new System.Windows.Forms.Button(); this.btnExit = new System.Windows.Forms.Button(); this.txtCPUInfo = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(24, 35); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 16); this.label1.TabIndex = 0; this.label1.Text = "本机MAC地址:"; // // label2 // this.label2.Location = new System.Drawing.Point(24, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(80, 16); this.label2.TabIndex = 1; this.label2.Text = "本机IP地址:"; // // label3 // this.label3.Location = new System.Drawing.Point(24, 112); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(80, 16); this.label3.TabIndex = 2; this.label3.Text = "计算机名:"; //
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询