1.cpu序列号2.mac序列号3.硬盘id
在给软件加序列号时这三个应该是最有用的,可以实现序列号和机器绑定,对保护软件很有好处.哈哈.
using System;
using System.Management;
/// Computer Information
public class Computer
{
public string CpuID; //1.cpu序列号
public string MacAddress; //2.mac序列号
public string DiskID; //3.硬盘id
public string IpAddress; //4.ip地址
public string LoginUserName; //5.登录用户名
public string ComputerName; //6.计算机名
public string SystemType; //7.系统类型
public string TotalPhysicalMemory; //8.内存量 单位:M
public Computer()
{
CpuID = GetCpuID();
MacAddress = GetMacAddress();
DiskID = GetDiskID();
IpAddress = GetIPAddress();
最后
以上就是辛勤棒球最近收集整理的关于C# 中获取CPU序列号/网卡mac地址的全部内容,更多相关C#内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复