@@ -1,9 +1,9 @@
|
||||
#include "cache-cleaner.h"
|
||||
#include "win-platform.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <unordered_set>
|
||||
|
||||
#include <windows.h>
|
||||
#include <shlobj.h>
|
||||
#include <tlhelp32.h>
|
||||
|
||||
|
||||
@@ -9,20 +9,18 @@
|
||||
#include "proxy-configurator.h"
|
||||
#include "cache-cleaner.h"
|
||||
|
||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <consoleapi.h>
|
||||
|
||||
// from: WinBase.h
|
||||
#define CREATE_NO_WINDOW 0x08000000
|
||||
#endif
|
||||
#include "win-platform.h"
|
||||
|
||||
#include <processenv.h>
|
||||
#include <cassert>
|
||||
#include <processthreadsapi.h>
|
||||
#include <handleapi.h>
|
||||
|
||||
#ifndef CREATE_NO_WINDOW
|
||||
// from: WinBase.h
|
||||
#define CREATE_NO_WINDOW 0x08000000
|
||||
#endif
|
||||
|
||||
bool running = true;
|
||||
TinyMITMProxy* proxy = nullptr;
|
||||
ProxyConfigurator* conf = nullptr;
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include "log-sink.h"
|
||||
|
||||
typedef void* HWND;
|
||||
#include <minwindef.h>
|
||||
#include "win-platform.h"
|
||||
|
||||
#include <minwinbase.h>
|
||||
#include <wininet.h>
|
||||
#include <errhandlingapi.h>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "utils.h"
|
||||
|
||||
#include <minwindef.h>
|
||||
#include "win-platform.h"
|
||||
|
||||
#include <libloaderapi.h>
|
||||
|
||||
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