C# winform授权:获取cpu和硬盘的序列号,得到机器码
摘要:
1首先在添加引用中选中System.Management2再在开始部门:3usingSystem.Management;4usingSystem.Management.Instrumentation;56privatevoidGetInfo()7{8stringcpuInfo="";//cpu序列号9ManagementClasscimobject=newManagementClass("Win32_Processor");10ManagementObjectCollectionmoc=cimobject.GetInstances();11foreach 阅读全文