• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
JensonBin
博客园    首页    新随笔    联系   管理    订阅  订阅
2011年12月24日
C# 获取机器码
摘要: using System.Runtime.InteropServices;using System.Management;using System;public class HardwareInfo ...{ //取机器名 public string GetHostName() ...{ return System.Net.Dns.GetHostName(); } //取CPU编号 public String GetCpuID() ...{ try ...{ ManagementClass mc = new ManagementClass("Win32_Processor... 阅读全文
posted @ 2011-12-24 23:17 JensonBin 阅读(517) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3