change wireguard vpn protocol implementation on Windows from wg.exe to wireguard windows embeddable-dll-service

This commit is contained in:
DiepDTN 2021-10-08 07:44:19 +07:00
parent d553d7f772
commit 6042317552
13 changed files with 243 additions and 3 deletions

View file

@ -0,0 +1,22 @@
#ifndef WIREGUARDTUNNELSERVICE_H
#define WIREGUARDTUNNELSERVICE_H
#include <Windows.h>
#include <string>
#define SVCNAME TEXT("AmneziaVPNWireGuardService")
class WireguardTunnelService
{
public:
WireguardTunnelService(const std::wstring& configFile);
void addService();
void removeService();
int startTunnel();
private:
std::wstring m_configFile;
};
void debug_log(const std::wstring& msg);
#endif // WIREGUARDTUNNELSERVICE_H