#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN             // 从 Windows 头文件中排除极少使用的内容
// Windows 头文件
#include <windows.h>
#include <wingdi.h>
#include <iostream>
#include <string>
#include <malloc.h>
#include <stdio.h>
#include <map>
#include <vector>
#include <fstream>



#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/filewritestream.h"
#include "rapidjson/istreamwrapper.h"




#include "Helpers.h"





//#define LOCALHOSTS_SWITCH "本地免验证 开启"


//#define SELL "售卖 开启"
//#define DOFILE_HOOK "群服dofile hook"


#define COUTWINDOWS_SWITCH "输出窗口 开启"
#define GOLD_LIGHT "曙光 开启"
#define ITEMRARITY "道具品级 开启"
#define MONSTER_BLOOD_UI "血槽修改 开启"

#define CREAT_CHR_UI "创建角色 开启"
#define GET_EXE_STR "获取EXE字符串索引 开启"
#define DRAWITEM "绘制ITEM 开启"
#define HOOKDRAWITEM "HOOK绘制ITEM 开启"
#define SETTINGWINDOWS "设置窗口HOOK 开启"
#define CODEDRAW "HOOK文字 开启"
#define HUDUI_100 "百级UI 开启"
#define SENDPACKHOOK_EX "发包HookEX 开启"

#define RecoverySystem "回收系统 开启"
#define Inventory_M_Pos "背包鼠标位置HOOK 开启"//(开启回收系统需要鼠标位置支持)
//
#define MOUSE_SWITCH "鼠标回调 开启"
#define SENDPACKHOOK "发包Hook 开启"
#define COPY_MESSAGE "消息框黏贴HOOK 开启"



#define CHRATRBT_SWITCH "人物或装备属性 查看 修改 开启"
#define TOWN_SWITCH "城镇类接口 开启"
#define CHRINFO_SWITCH "角色疲劳经验获取 开启"
#define SET_SLOT_API_SWITCH "L设置UI槽 开启"
#define LCOUT_API_SWITCH "L输出公告 开启"
#define DRAW_CODE "L绘制字符 开启"
//
#define SEND_PACK_SWITCH "发包类 开启"
#define SEND_API_SWITCH "发包功能API 开启"
#define DOFILE_API_SWITCH "L_Dofile调用 开启"
#define ADDRESS_API_SWITCH "内存操作 开启"
#define NEW_WINDOW_API_SWITCH "L新建窗口 开启"


#define DRAGONBOX_SWITCH "龙盒开启"
#define TUGUAN_SWITCH "土罐开启"
#define WORLDBOSS_SWITCH "世界BOSS开启"
#define TEAM_DPS_SWITCH "组队DPS开启"
#define ANTON_SWITCH "安图恩团本开启"
#define CDKCHANGE_SWITCH "兑换CDK开启"
#define RANK_SWITCH "排行榜开启"
#define MEDAL_SWITCH "勋章开启"
#define HUSHI_SWITCH "护石开启"
#define BUFFSWITCHING_SWITCH "buff换装开启"
#define NEWUPGRADE_SWITCH "新版强化开启"


#define NORMAL_STL	"普通STL开启"
#define TIME_STL	"时间STL开启"
#define JSON_STL "Json_STL 开启"
#define CODE_STL "字符_STL 开启"

#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)



#if defined LOCALHOSTS_SWITCH

#else
#define CPPHTTPLIB_OPENSSL_SUPPORT
//#include "framework.h"
#include "RSAC.h"
#include "BASE64.h"
#include "httplib.h"
#endif

#if defined GOLD_LIGHT
# define Skey	{5,1,9,1,2} 
#else
# define Skey	{5,1,9,1,3} 
#endif

# define Pri_key	"-----BEGIN PRIVATE KEY-----\n"\
"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDFRCM7WMVgU81p\n"\
"JXGmH7nxun7IaXiERWtegwJ7WsV6I4D+K4TMHkm5LVgnsQnFWluJhNkpO7iMR7mA\n"\
"Jxu3pLPqDUsWiRttk9KQoiKXp/uHWtsi9vXlWu2OEB50Bpe4DK2TBb2PiNBEOCw5\n"\
"7ThT3Xjx/2PUZUC3wPVkvdzd6rmc3dGLokskqsBetOf9j4IVj7PKNSRRLRE2bowt\n"\
"nhDRco9Lf8hzaz9t1F+8u3EDqVDKsyNs0eOtqkUb5hn7QcGUwHT6ptImHd+wXhAN\n"\
"9YU1Y2PcXDWPgSOM2VgWuIGEuHm2izScN3eZh81B2tk0V1b67v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lFDK8ZU36daelc3MXMlU1maZY9Qerc028bK9YIEE\n"\
"PHbwgzxU8/i+v+2iq7ypy9zLeY2L7kXufZy1pGtRAoGAXdVeRL+YWjTj2AMC6+mN\n"\
"QgNT3E6lrOopRk9U48JMV7qRdHF7icGtABGmlcBAqOOQzJWLOUXrukp8BHlAwyt0\n"\
"viEw5OFWhMMr3AUcynsAYVi47iqfSVMrrwWBFfadHNRbcZchmHbwp9fJhzV53ecK\n"\
"LAhMaD06LDHNnEJ1cGt1jiw=\n"\
"-----END PRIVATE KEY-----"




//#include "lsquirrel.h"
#include "STL.h"
#include "DNFTOOL.h"
#include "sock.h"
#include "hook.h"
#include "lsquirrel.h"

