56 lines
926 B
C++
56 lines
926 B
C++
#pragma once
|
|
|
|
#define BINARY_PAYLOAD_SIZE 0x0A000000
|
|
#define TLS_PAYLOAD_SIZE 0x2000
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(disable: 4458)
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
#include <mshtml.h>
|
|
#include <mshtmhst.h>
|
|
#include <ExDisp.h>
|
|
#include <WinSock2.h>
|
|
#include <Ws2tcpip.h>
|
|
#include <corecrt_io.h>
|
|
#include <fcntl.h>
|
|
|
|
// min and max is required by gdi, therefore NOMINMAX won't work
|
|
#ifdef max
|
|
#undef max
|
|
#endif
|
|
|
|
#ifdef min
|
|
#undef min
|
|
#endif
|
|
|
|
#include <map>
|
|
#include <atomic>
|
|
#include <vector>
|
|
#include <mutex>
|
|
#include <queue>
|
|
#include <regex>
|
|
#include <thread>
|
|
#include <fstream>
|
|
#include <utility>
|
|
#include <filesystem>
|
|
|
|
#include <zlib.h>
|
|
#include <diff.h>
|
|
#include <patch.h>
|
|
#include <tomcrypt.h>
|
|
|
|
#include <gsl/gsl>
|
|
|
|
#pragma comment (lib, "gdiplus.lib")
|
|
#pragma comment(lib, "ws2_32.lib")
|
|
|
|
#pragma warning(pop)
|
|
#pragma warning(disable: 4100)
|
|
|
|
#include "resource.hpp"
|
|
|
|
using namespace std::literals;
|