Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <stdlib.h>
- namespace ProjectActivator {
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- public ref class MyForm : public System::Windows::Forms::Form
- {
- public:
- MyForm(void)
- {
- InitializeComponent();
- }
- protected:
- ~MyForm()
- {
- if (components)
- {
- delete components;
- }
- }
- private: System::Windows::Forms::Button^ button1;
- private: System::Windows::Forms::Label^ label1;
- private: System::Windows::Forms::CheckBox^ checkBox1;
- private: System::Windows::Forms::CheckBox^ checkBox2;
- private: System::ComponentModel::IContainer^ components;
- protected:
- private:
- #pragma region Windows Form Designer generated code
- void InitializeComponent(void)
- {
- System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MyForm::typeid));
- this->button1 = (gcnew System::Windows::Forms::Button());
- this->label1 = (gcnew System::Windows::Forms::Label());
- this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
- this->checkBox2 = (gcnew System::Windows::Forms::CheckBox());
- this->SuspendLayout();
- //
- // button1
- //
- this->button1->BackColor = System::Drawing::Color::Transparent;
- this->button1->Cursor = System::Windows::Forms::Cursors::Hand;
- this->button1->FlatAppearance->BorderColor = System::Drawing::Color::BlueViolet;
- this->button1->FlatAppearance->MouseOverBackColor = System::Drawing::SystemColors::MenuBar;
- this->button1->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
- this->button1->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
- static_cast<System::Byte>(0)));
- this->button1->ForeColor = System::Drawing::Color::BlueViolet;
- this->button1->Location = System::Drawing::Point(183, 206);
- this->button1->Name = L"button1";
- this->button1->Size = System::Drawing::Size(132, 48);
- this->button1->TabIndex = 0;
- this->button1->Text = L"Activate";
- this->button1->UseVisualStyleBackColor = false;
- this->button1->Click += gcnew System::EventHandler(this, &MyForm::button1_Click);
- //
- // label1
- //
- this->label1->AutoSize = true;
- this->label1->BackColor = System::Drawing::Color::Transparent;
- this->label1->Font = (gcnew System::Drawing::Font(L"Gill Sans MT", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
- static_cast<System::Byte>(0)));
- this->label1->ForeColor = System::Drawing::Color::BlueViolet;
- this->label1->Location = System::Drawing::Point(143, 290);
- this->label1->Name = L"label1";
- this->label1->Size = System::Drawing::Size(219, 18);
- this->label1->TabIndex = 1;
- this->label1->Text = L"Windows Activator by Marin Stoyanov";
- this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
- this->label1->Click += gcnew System::EventHandler(this, &MyForm::label1_Click_1);
- //
- // checkBox1
- //
- this->checkBox1->Appearance = System::Windows::Forms::Appearance::Button;
- this->checkBox1->AutoSize = true;
- this->checkBox1->BackColor = System::Drawing::Color::Transparent;
- this->checkBox1->Cursor = System::Windows::Forms::Cursors::Default;
- this->checkBox1->FlatAppearance->BorderColor = System::Drawing::Color::DarkTurquoise;
- this->checkBox1->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
- this->checkBox1->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
- static_cast<System::Byte>(0)));
- this->checkBox1->ForeColor = System::Drawing::Color::DarkTurquoise;
- this->checkBox1->Location = System::Drawing::Point(176, 58);
- this->checkBox1->Name = L"checkBox1";
- this->checkBox1->Size = System::Drawing::Size(146, 33);
- this->checkBox1->TabIndex = 2;
- this->checkBox1->Text = L"Windows 10 Pro";
- this->checkBox1->UseVisualStyleBackColor = false;
- //
- // checkBox2
- //
- this->checkBox2->Appearance = System::Windows::Forms::Appearance::Button;
- this->checkBox2->AutoSize = true;
- this->checkBox2->BackColor = System::Drawing::Color::Transparent;
- this->checkBox2->Cursor = System::Windows::Forms::Cursors::Default;
- this->checkBox2->FlatAppearance->BorderColor = System::Drawing::Color::DarkTurquoise;
- this->checkBox2->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
- this->checkBox2->Font = (gcnew System::Drawing::Font(L"SF Pro Display", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
- static_cast<System::Byte>(0)));
- this->checkBox2->ForeColor = System::Drawing::Color::DarkTurquoise;
- this->checkBox2->Location = System::Drawing::Point(165, 105);
- this->checkBox2->Name = L"checkBox2";
- this->checkBox2->Size = System::Drawing::Size(168, 33);
- this->checkBox2->TabIndex = 3;
- this->checkBox2->Text = L"Windows 10 Home";
- this->checkBox2->UseVisualStyleBackColor = false;
- //
- // MyForm
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"$this.BackgroundImage")));
- this->ClientSize = System::Drawing::Size(518, 317);
- this->Controls->Add(this->checkBox2);
- this->Controls->Add(this->checkBox1);
- this->Controls->Add(this->label1);
- this->Controls->Add(this->button1);
- this->Cursor = System::Windows::Forms::Cursors::Hand;
- this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
- this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
- this->Name = L"MyForm";
- this->Text = L"Windows Activator";
- this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load);
- this->ResumeLayout(false);
- this->PerformLayout();
- }
- #pragma endregion
- private: System::Void MyForm_Load(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
- if (checkBox1->Checked && checkBox2->Checked) {
- MessageBox::Show("You can choose only one operating system!", "Error!",
- MessageBoxButtons::OK, MessageBoxIcon::Error);
- }
- else if (checkBox1->Checked) {
- system("slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX");
- system("slmgr /skms kms8.msguides.com");
- system("slmgr /ato");
- MessageBox::Show("Windows 10 Pro was successfully activated!", "Activated!",
- MessageBoxButtons::OK, MessageBoxIcon::Information);
- }
- else if (checkBox2->Checked) {
- system("slmgr /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99");
- system("slmgr /skms kms8.msguides.com");
- system("slmgr /ato");
- MessageBox::Show("Windows 10 Home was successfully activated!", "Activated!",
- MessageBoxButtons::OK, MessageBoxIcon::Information);
- }
- }
- private: System::Void label1_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void label1_Click_1(System::Object^ sender, System::EventArgs^ e) {
- }
- };
- }
Add Comment
Please, Sign In to add comment