📄 program.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -