Ejemplo n.º 1
0
        private void ProductRegistry_Load(object sender, EventArgs e)
        {
            ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT SerialNumber FROM Win32_BaseBoard");

            foreach (ManagementObject MySerial in searcher.Get())
            {
                string bserial = MySerial.GetPropertyValue("SerialNumber").ToString();
                txtcopycode.Text = AesCrypt.Encrypt(bserial);
            }
            ProductRegistry pf = new ProductRegistry();
        }