資源簡介
使用硬盤序列號和CPU序列號生成機器碼
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?Microsoft.Win32;
using?System.Management;
namespace?GetMCodeByCPUAndYP
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????label1.Text?=?getCpu()?+?GetDiskVolumeSerialNumber();//獲得24位Cpu和硬盤序列號
????????????string[]?strid?=?new?string[24];
????????????for?(int?i?=?0;?i?24;?i++)//把字符賦給數組
????????????{
????????????????strid[i]?=?label1.Text.Substring(i?1);
????????????}
????????????label1.Text?=?““;
????????????Random?rdid?=?new?Random();
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\
?????文件?????????944??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP.sln
?????文件???????36864??2009-02-12?14:08??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP.suo
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\bin\
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\bin\Debug\
?????文件????????9728??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\bin\Debug\GetMCodeByCPUAndYP.exe
?????文件???????22016??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\bin\Debug\GetMCodeByCPUAndYP.pdb
?????文件???????14328??2009-02-12?14:07??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\bin\Debug\GetMCodeByCPUAndYP.vshost.exe
?????文件????????1960??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Form1.cs
?????文件????????3559??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Form1.designer.cs
?????文件????????5814??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Form1.resx
?????文件????????3829??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\GetMCodeByCPUAndYP.csproj
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\
?????文件?????????953??2009-02-12?14:07??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.csproj.FileListAbsolute.txt
?????文件?????????847??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.csproj.GenerateResource.Cache
?????文件????????9728??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.exe
?????文件?????????180??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.Form1.resources
?????文件???????22016??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.pdb
?????文件?????????180??2009-02-12?14:06??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\GetMCodeByCPUAndYP.Properties.Resources.resources
?????目錄???????????0??2012-05-02?09:57??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\Refactor\
?????目錄???????????0??2012-05-02?09:57??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\obj\Debug\TempPE\
?????文件?????????499??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Program.cs
?????目錄???????????0??2013-01-27?14:40??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\
?????文件????????1392??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\AssemblyInfo.cs
?????文件????????2886??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\Resources.Designer.cs
?????文件????????5612??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\Resources.resx
?????文件????????1103??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\Settings.Designer.cs
?????文件?????????249??2009-02-12?14:00??根據CPU硬盤獲取機器碼\GetMCodeByCPUAndYP\Properties\Settings.settings
- 上一篇:C#實現 口令加密Exe文件 ,從而禁用某些功能的使用
- 下一篇:C# MD5加密
評論
共有 條評論