-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRebirth.cpp
More file actions
63 lines (52 loc) · 1.79 KB
/
Copy pathRebirth.cpp
File metadata and controls
63 lines (52 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <Windows.h>
#include <boost/thread/thread.hpp>
#include "Rebirth.h"
#include "Secure.h"
#include "hLib.h"
using namespace TyE_Module;
using namespace boost;
//CREATE_LIBRARY_OBJECT
Library *lib = new Library(false);
//CREATE_PROTECTION_SCANNER
Secure *PROTECT = new Secure(50);
//INTIALIZE
void Rebirth::Rebirth_Load(System::Object^ sender, System::EventArgs^ e) {
toolTip1->SetToolTip(Exit, "Exit Rebirth Manager");
toolTip1->SetToolTip(Minimize, "Minimize Rebirth Form");
toolTip1->SetToolTip(panel3, "Initialize Rebirth");
toolTip1->SetToolTip(label2, "Initialize Rebirth");
toolTip1->SetToolTip(panel4, "Reboot Client");
toolTip1->SetToolTip(label3, "Reboot Client");
//BEGIN_SECURITY_SCAN
Protection->RunWorkerAsync();
}
//SECURITY_SCAN
void Rebirth::Protection_DoWork(System::Object^ sender, System::ComponentModel::DoWorkEventArgs^ e) {
//CREATE_SCAN_THREAD
PROTECT->InitScan();
}
//DO_LOAD_INITIALIZE_REBIRTH
void _rebirth() {
lib->Rebirth();
}
void Rebirth::panel3_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBoxA( NULL, "This Process May Take Up To 5 Minutes", "TyE . Dialog", MB_OK | MB_ICONWARNING );
panel3->Enabled = false;
thread rebirth_0( &_rebirth );
rebirth_0.join();
label_completed:
if (lib->rbSwitch == 0) {
Sleep(500);
goto label_completed;
}
panel4->Enabled = true;
MessageBoxA( NULL, "Initialization Complete!", "TyE . Dialog", MB_OK | MB_ICONINFORMATION );
}
void Rebirth::label2_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBoxA( NULL, "This Process May Take Up To 5 Minutes", "TyE . Dialog", MB_OK | MB_ICONWARNING );
panel3->Enabled = false;
thread rebirth_0( &_rebirth );
rebirth_0.join();
panel4->Enabled = true;
MessageBoxA( NULL, "Initialization Complete!", "TyE . Dialog", MB_OK | MB_ICONINFORMATION );
}