用C#编程怎么样实现提取原始的物理MAC地址(不是更改过的MAC地址)

 我来答
灰机哥系列699
2013-10-16 · 超过57用户采纳过TA的回答
知道答主
回答量:108
采纳率:50%
帮助的人:106万
展开全部
/// 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 = "计算机名:"; //
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式