mstoyanov7

Activator Header

Oct 9th, 2021 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.21 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <stdlib.h>
  4.  
  5. namespace ProjectActivator {
  6.  
  7.     using namespace System;
  8.     using namespace System::ComponentModel;
  9.     using namespace System::Collections;
  10.     using namespace System::Windows::Forms;
  11.     using namespace System::Data;
  12.     using namespace System::Drawing;
  13.  
  14.  
  15.     public ref class MyForm : public System::Windows::Forms::Form
  16.     {
  17.     public:
  18.         MyForm(void)
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.     protected:
  24.         ~MyForm()
  25.         {
  26.             if (components)
  27.             {
  28.                 delete components;
  29.             }
  30.         }
  31.     private: System::Windows::Forms::Button^ button1;
  32.     private: System::Windows::Forms::Label^ label1;
  33.     private: System::Windows::Forms::CheckBox^ checkBox1;
  34.     private: System::Windows::Forms::CheckBox^ checkBox2;
  35.  
  36.  
  37.     private: System::ComponentModel::IContainer^ components;
  38.  
  39.     protected:
  40.  
  41.     private:
  42.  
  43.  
  44.  
  45. #pragma region Windows Form Designer generated code
  46.  
  47.         void InitializeComponent(void)
  48.         {
  49.             System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MyForm::typeid));
  50.             this->button1 = (gcnew System::Windows::Forms::Button());
  51.             this->label1 = (gcnew System::Windows::Forms::Label());
  52.             this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
  53.             this->checkBox2 = (gcnew System::Windows::Forms::CheckBox());
  54.             this->SuspendLayout();
  55.             //
  56.             // button1
  57.             //
  58.             this->button1->BackColor = System::Drawing::Color::Transparent;
  59.             this->button1->Cursor = System::Windows::Forms::Cursors::Hand;
  60.             this->button1->FlatAppearance->BorderColor = System::Drawing::Color::BlueViolet;
  61.             this->button1->FlatAppearance->MouseOverBackColor = System::Drawing::SystemColors::MenuBar;
  62.             this->button1->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
  63.             this->button1->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
  64.                 static_cast<System::Byte>(0)));
  65.             this->button1->ForeColor = System::Drawing::Color::BlueViolet;
  66.             this->button1->Location = System::Drawing::Point(183, 206);
  67.             this->button1->Name = L"button1";
  68.             this->button1->Size = System::Drawing::Size(132, 48);
  69.             this->button1->TabIndex = 0;
  70.             this->button1->Text = L"Activate";
  71.             this->button1->UseVisualStyleBackColor = false;
  72.             this->button1->Click += gcnew System::EventHandler(this, &MyForm::button1_Click);
  73.             //
  74.             // label1
  75.             //
  76.             this->label1->AutoSize = true;
  77.             this->label1->BackColor = System::Drawing::Color::Transparent;
  78.             this->label1->Font = (gcnew System::Drawing::Font(L"Gill Sans MT", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
  79.                 static_cast<System::Byte>(0)));
  80.             this->label1->ForeColor = System::Drawing::Color::BlueViolet;
  81.             this->label1->Location = System::Drawing::Point(143, 290);
  82.             this->label1->Name = L"label1";
  83.             this->label1->Size = System::Drawing::Size(219, 18);
  84.             this->label1->TabIndex = 1;
  85.             this->label1->Text = L"Windows Activator by Marin Stoyanov";
  86.             this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
  87.             this->label1->Click += gcnew System::EventHandler(this, &MyForm::label1_Click_1);
  88.             //
  89.             // checkBox1
  90.             //
  91.             this->checkBox1->Appearance = System::Windows::Forms::Appearance::Button;
  92.             this->checkBox1->AutoSize = true;
  93.             this->checkBox1->BackColor = System::Drawing::Color::Transparent;
  94.             this->checkBox1->Cursor = System::Windows::Forms::Cursors::Default;
  95.             this->checkBox1->FlatAppearance->BorderColor = System::Drawing::Color::DarkTurquoise;
  96.             this->checkBox1->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
  97.             this->checkBox1->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
  98.                 static_cast<System::Byte>(0)));
  99.             this->checkBox1->ForeColor = System::Drawing::Color::DarkTurquoise;
  100.             this->checkBox1->Location = System::Drawing::Point(176, 58);
  101.             this->checkBox1->Name = L"checkBox1";
  102.             this->checkBox1->Size = System::Drawing::Size(146, 33);
  103.             this->checkBox1->TabIndex = 2;
  104.             this->checkBox1->Text = L"Windows 10 Pro";
  105.             this->checkBox1->UseVisualStyleBackColor = false;
  106.             //
  107.             // checkBox2
  108.             //
  109.             this->checkBox2->Appearance = System::Windows::Forms::Appearance::Button;
  110.             this->checkBox2->AutoSize = true;
  111.             this->checkBox2->BackColor = System::Drawing::Color::Transparent;
  112.             this->checkBox2->Cursor = System::Windows::Forms::Cursors::Default;
  113.             this->checkBox2->FlatAppearance->BorderColor = System::Drawing::Color::DarkTurquoise;
  114.             this->checkBox2->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
  115.             this->checkBox2->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
  116.                 static_cast<System::Byte>(0)));
  117.             this->checkBox2->ForeColor = System::Drawing::Color::DarkTurquoise;
  118.             this->checkBox2->Location = System::Drawing::Point(165, 105);
  119.             this->checkBox2->Name = L"checkBox2";
  120.             this->checkBox2->Size = System::Drawing::Size(168, 33);
  121.             this->checkBox2->TabIndex = 3;
  122.             this->checkBox2->Text = L"Windows 10 Home";
  123.             this->checkBox2->UseVisualStyleBackColor = false;
  124.             //
  125.             // MyForm
  126.             //
  127.             this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  128.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  129.             this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"$this.BackgroundImage")));
  130.             this->ClientSize = System::Drawing::Size(518, 317);
  131.             this->Controls->Add(this->checkBox2);
  132.             this->Controls->Add(this->checkBox1);
  133.             this->Controls->Add(this->label1);
  134.             this->Controls->Add(this->button1);
  135.             this->Cursor = System::Windows::Forms::Cursors::Hand;
  136.             this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
  137.             this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
  138.             this->Name = L"MyForm";
  139.             this->Text = L"Windows Activator";
  140.             this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load);
  141.             this->ResumeLayout(false);
  142.             this->PerformLayout();
  143.  
  144.         }
  145. #pragma endregion
  146.     private: System::Void MyForm_Load(System::Object^ sender, System::EventArgs^ e) {
  147.     }
  148.     private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
  149.         if (checkBox1->Checked && checkBox2->Checked) {
  150.             MessageBox::Show("You can choose only one operating system!", "Error!",
  151.                 MessageBoxButtons::OK, MessageBoxIcon::Error);
  152.         }
  153.         else if (checkBox1->Checked) {
  154.             system("slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX");
  155.             system("slmgr /skms kms8.msguides.com");
  156.             system("slmgr /ato");
  157.  
  158.             MessageBox::Show("Windows 10 Pro was successfully activated!", "Activated!",
  159.                 MessageBoxButtons::OK, MessageBoxIcon::Information);
  160.         }
  161.         else if (checkBox2->Checked) {
  162.             system("slmgr /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99");
  163.             system("slmgr /skms kms8.msguides.com");
  164.             system("slmgr /ato");
  165.  
  166.             MessageBox::Show("Windows 10 Home was successfully activated!", "Activated!",
  167.                 MessageBoxButtons::OK, MessageBoxIcon::Information);
  168.         }
  169.        
  170.     }
  171.     private: System::Void label1_Click(System::Object^ sender, System::EventArgs^ e) {
  172.     }
  173.     private: System::Void label1_Click_1(System::Object^ sender, System::EventArgs^ e) {
  174.     }
  175. };
  176. }
  177.  
Add Comment
Please, Sign In to add comment