@@ -1,9 +1,9 @@
|
|||||||
#include "cache-cleaner.h"
|
#include "cache-cleaner.h"
|
||||||
|
#include "win-platform.h"
|
||||||
|
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <tlhelp32.h>
|
#include <tlhelp32.h>
|
||||||
|
|
||||||
|
|||||||
@@ -9,20 +9,18 @@
|
|||||||
#include "proxy-configurator.h"
|
#include "proxy-configurator.h"
|
||||||
#include "cache-cleaner.h"
|
#include "cache-cleaner.h"
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
#include "win-platform.h"
|
||||||
#include <windows.h>
|
|
||||||
#else
|
|
||||||
#include <consoleapi.h>
|
|
||||||
|
|
||||||
// from: WinBase.h
|
|
||||||
#define CREATE_NO_WINDOW 0x08000000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <processenv.h>
|
#include <processenv.h>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <processthreadsapi.h>
|
#include <processthreadsapi.h>
|
||||||
#include <handleapi.h>
|
#include <handleapi.h>
|
||||||
|
|
||||||
|
#ifndef CREATE_NO_WINDOW
|
||||||
|
// from: WinBase.h
|
||||||
|
#define CREATE_NO_WINDOW 0x08000000
|
||||||
|
#endif
|
||||||
|
|
||||||
bool running = true;
|
bool running = true;
|
||||||
TinyMITMProxy* proxy = nullptr;
|
TinyMITMProxy* proxy = nullptr;
|
||||||
ProxyConfigurator* conf = nullptr;
|
ProxyConfigurator* conf = nullptr;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include "log-sink.h"
|
#include "log-sink.h"
|
||||||
|
|
||||||
typedef void* HWND;
|
#include "win-platform.h"
|
||||||
#include <minwindef.h>
|
|
||||||
#include <minwinbase.h>
|
#include <minwinbase.h>
|
||||||
#include <wininet.h>
|
#include <wininet.h>
|
||||||
#include <errhandlingapi.h>
|
#include <errhandlingapi.h>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include <minwindef.h>
|
#include "win-platform.h"
|
||||||
|
|
||||||
#include <libloaderapi.h>
|
#include <libloaderapi.h>
|
||||||
|
|
||||||
std::string utils::getExePath()
|
std::string utils::getExePath()
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user