program.cs

来自「如文件名所说,可以根据主机的CPU,硬盘的物理编码编写注册码」· CS 代码 · 共 65 行

CS
65
字号
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Microsoft.Win32;

namespace 用户注册
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {                           
            Microsoft.Win32.RegistryKey subKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software");
            string[] keyNames = subKey.GetSubKeyNames();
            subKey.Close();        
            foreach (string keyName in keyNames)
            {
                if (keyName == "angel")
                {

                    Int32 tLong = Convert.ToInt32(scy.Decode(Convert.ToString(Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\angel", "zVqzZk", "rOQYhOdNqa4="))));
                    if (tLong == 5 || tLong == 0)
                    {
                        try
                        {
                            Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\angel", "zVqzZk", "Hk7Qqc40o0g=");
                            Application.EnableVisualStyles();
                            Application.SetCompatibleTextRenderingDefault(false);
                            Application.Run(new Form1());
                        }
                        catch { }
                    }
                    else
                    {
                        try
                        {
                            Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\angel", "zVqzZk", "Hk7Qqc40o0g=");
                            Application.EnableVisualStyles();
                            Application.SetCompatibleTextRenderingDefault(false);
                            Application.Run(new Form2());
                        }
                        catch { }
                    }                    
                }
                else
                {
                    try
                    {
                        Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\angel", "zVqzZk", "Hk7Qqc40o0g=");
                        Application.EnableVisualStyles();
                        Application.SetCompatibleTextRenderingDefault(false);
                        Application.Run(new Form1());
                    }
                    catch { }

                }
             

            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?