-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.h
More file actions
116 lines (110 loc) · 3.92 KB
/
Copy pathmain.h
File metadata and controls
116 lines (110 loc) · 3.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#ifndef MAIN_H
#define MAIN_H
#include <bits/stdc++.h>
#include <windows.h>
#include <ctime>
#include <conio.h>
#include <imm.h>
//Open Source libs
#include "curl/curl.h"
#include <archive.h>
#include <libconfig.h++>
#define LIBCONFIG_STATIC
//任务栏进度条
#define INITGUID
#include <shobjidl.h>
inline const GUID IID_ITaskbarList3 = {// 手动定义IID_ITaskbarList3
0xea1afb91, 0x9e28, 0x4b86,
{0x90, 0xe9, 0x9e, 0x9f, 0x8a, 0x5e, 0xef, 0xaf}
};
//重启explorer.exe
#include <tlhelp32.h>
//注册表修改
#include <tchar.h>
//游戏
#define N 25
#define Forij(x) for(int i=1;i<=x;i++)for(int j=1;j<=x;j++)
//获取管理员权限所需
#include <tchar.h>
#include <shellapi.h>
//cin错误去除
#include <limits>
//文件控制
#include <fstream>
#define S(i) Sleep(i)
#define cls system("cls")
#define ei else if
typedef long long LL;
//std::string EXECPATH;
inline std::string executable_path;
inline libconfig::Config cfg;
extern void poweron(bool SkipCheckWinVer, bool fb = false);
inline int box = 1/*板块*/, boxn = 4/*板块总数*/;
inline struct Word {
std::vector<std::string> box = {"NULL", "常用", "核心功能", "附加功能", "设置"};
std::vector<std::string> recent = {"NULL", "一键解希沃锁屏", "晚自习制裁模式", "连点器(可防屏保)", "小游戏>>>"};
std::vector<std::string> all = {"NULL", "循环清任务(上课防屏保)", "一键卸载", "晚自习制裁模式", "连点器(可防屏保)", "一键解希沃锁屏", "录制视频", "小游戏>>>", "恶搞>>>", "注册表>>>"};
std::vector<std::string> more = {"NULL", "冰点还原破解", "AI", "计算π"};
std::vector<std::string> setting = {
"NULL", "退出",
"---插件与配置文件---",
"管理插件>>>",
"在晚自习制裁/循环清任务时启用日志",
"-打开制裁日志文件夹",
"允许使用“关闭”按钮",
"启动设置",
"---帮助---",
"启动初学者引导",
"冰点还原疑难解答",
"命令行帮助",
"---高级---",
"使用新版界面",
"重载插件与配置文件",
"重启到fastboot(真的fast!)",
"---其它---",
"软件更新",
//"更新渠道",
"关于"
};
std::vector<std::string> game = {"NULL", "返回", "数字炸弹", "五子棋", "飞机大战", "恶魔轮盘赌"};
std::vector<std::string> joke = {"NULL", "返回", "杀WPS+希沃白板+希沃视频展台", "提取U盘文件","RAM内存消耗器"};
std::vector<std::string> reg = {"NULL", "返回", "禁用任务栏菜单", "启用任务栏菜单", "禁用快捷键", "启用快捷键", "启用显示登录详细信息", "禁用显示登录详细信息", "登录时显示提示", "取消登录时显示提示"};
std::vector<std::string> dev = {"NULL", "返回", "释放进度条COM接口", "版本信息", "关闭开发者模式"};
} word;
inline struct DefaultWord {
const std::vector<std::string> more = {"NULL", "冰点还原破解", "AI", "计算π"};
const std::vector<std::string> setting = {
"NULL", "退出",
"---插件与配置文件---",
"管理插件>>>",
"在晚自习制裁/循环清任务时启用日志",
"-打开制裁日志文件夹",
"允许使用“关闭”按钮",
"启动设置",
"---帮助---",
"启动初学者引导",
"冰点还原疑难解答",
"命令行帮助",
"---高级---",
"使用新版界面",
"重载插件与配置文件",
"重启到fastboot(真的fast!)",
"---其它---",
"软件更新",
//"更新渠道",
"关于"
};
const std::vector<std::string> dev = {"NULL", "返回", "释放进度条COM接口", "关闭开发者模式"};
} def_word;
inline struct Plugin {
std::vector<std::string> pluginName;
std::vector<std::string> plugin;//ID
std::vector<bool> pluginIsEnabled;
std::vector<std::string> pluginType;
std::vector<std::vector<std::string>> pluginExec;
//std::vector<std::string> pluginExec;//type=exec
std::vector<std::vector<std::string>> pluginList;//type=list
std::vector<bool> pluginIsCls;
std::vector<std::string> errorpath;
} plugin;
#endif