Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            HardwareInfo hardwareInfo = new HardwareInfo();
            string       cpuID        = hardwareInfo.GetCpuID();
            string       HardID       = hardwareInfo.GetHardDiskID();

            if (cpuID == "BFEBFBFF000806E9" && HardID == "0025_38B8_71B5_FEE9.")  //填主机cpu序列号
            {
                Application.Run(new MainForm());
            }
            else
            {
                MessageBox.Show("非本机,不能使用!");
                Application.Exit();
            }
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            HardwareInfo hardwareInfo = new HardwareInfo();
            string       cpuID        = hardwareInfo.GetCpuID();
            string       HardId       = hardwareInfo.GetHardDiskID();

            if (cpuID == "BFEBFBFF000406F1" && HardId == "Z6T946DAS")
            {
                Application.Run(new MainForm());
            }
            else
            {
                MessageBox.Show("非本机,不能使用!");
                Application.Exit();
            }
        }