mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
23 lines
451 B
C++
23 lines
451 B
C++
|
|
#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
|