diff --git a/NetTunnelApp/App.config b/NetTunnelApp/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/NetTunnelApp/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NetTunnelApp/App.xaml b/NetTunnelApp/App.xaml
deleted file mode 100644
index 2018b11..0000000
--- a/NetTunnelApp/App.xaml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/NetTunnelApp/App.xaml.cs b/NetTunnelApp/App.xaml.cs
deleted file mode 100644
index f042c44..0000000
--- a/NetTunnelApp/App.xaml.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace NetTunnelApp
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
-}
diff --git a/NetTunnelApp/AssemblyInfo.cs b/NetTunnelApp/AssemblyInfo.cs
deleted file mode 100644
index 8b5504e..0000000
--- a/NetTunnelApp/AssemblyInfo.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Windows;
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
diff --git a/NetTunnelApp/Form1.Designer.cs b/NetTunnelApp/Form1.Designer.cs
new file mode 100644
index 0000000..76cd7e1
--- /dev/null
+++ b/NetTunnelApp/Form1.Designer.cs
@@ -0,0 +1,40 @@
+namespace NetTunnelApp
+{
+ partial class Form1
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Text = "Form1";
+ }
+
+ #endregion
+ }
+}
+
diff --git a/NetTunnelApp/Form1.cs b/NetTunnelApp/Form1.cs
new file mode 100644
index 0000000..4f7e96c
--- /dev/null
+++ b/NetTunnelApp/Form1.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace NetTunnelApp
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/NetTunnelApp/MainWindow.xaml b/NetTunnelApp/MainWindow.xaml
deleted file mode 100644
index 0cfc087..0000000
--- a/NetTunnelApp/MainWindow.xaml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
diff --git a/NetTunnelApp/MainWindow.xaml.cs b/NetTunnelApp/MainWindow.xaml.cs
deleted file mode 100644
index a656c08..0000000
--- a/NetTunnelApp/MainWindow.xaml.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-
-namespace NetTunnelApp
-{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
-
- NetTunnelLib.TunnelSDKInitEnv();
-
- string path = System.Environment.CurrentDirectory + "\\tunnelsdk_" +
- string.Format("{0:yyyyMMdd_HHmm}", System.DateTime.Now) + ".log";
- NetTunnelLib.InitTunnelSDKLog(path, LogLevel.LOG_DEBUG);
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/NetTunnelApp/NetTunnelApp.csproj b/NetTunnelApp/NetTunnelApp.csproj
index f070b95..0f5a361 100644
--- a/NetTunnelApp/NetTunnelApp.csproj
+++ b/NetTunnelApp/NetTunnelApp.csproj
@@ -1,14 +1,90 @@
-
-
+
+
+
+ Debug
+ AnyCPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}
WinExe
- net6.0-windows
- enable
- true
+ NetTunnelApp
+ NetTunnelApp
+ v4.7.2
+ 512
+ true
+ true
-
-
-
-
-
-
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+ LocalIntranet
+
+
+ true
+
+
+ Properties\app.manifest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NetTunnelApp/NetTunnelApp.csproj.user b/NetTunnelApp/NetTunnelApp.csproj.user
deleted file mode 100644
index 644b0a6..0000000
--- a/NetTunnelApp/NetTunnelApp.csproj.user
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- Designer
-
-
-
-
- Designer
-
-
-
\ No newline at end of file
diff --git a/NetTunnelApp/NetTunnelLib.cs b/NetTunnelApp/NetTunnelLib.cs
deleted file mode 100644
index 6728833..0000000
--- a/NetTunnelApp/NetTunnelLib.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-
-namespace NetTunnelApp;
-
-public enum ProtoCryptoType
-{
- CRYPTO_NONE = 0,
- CRYPTO_BASE64 = 1,
- CRYPTO_AES128 = 2,
- CRYPTO_3DES = 3,
- CRYPTO_AES256 = 4
-}
-
-public enum LogLevel
-{
- LOG_DEBUG = 0,
- LOG_INFO = 1,
- LOG_WARN = 2,
- LOG_ERROR = 3
-}
-
-public class NetTunnelLib
-{
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern int CreateTunnel(String lpszMsg);
-
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TestMessage();
-
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- internal static extern Int32 Add(int a, int b);
-
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern int TunnelSDKInitEnv();
-
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern int SetProtocolEncryptType(ProtoCryptoType type, String pProKey);
-
- [DllImport("NetTunnelSDK.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern void InitTunnelSDKLog(String pProKey, LogLevel level);
-}
\ No newline at end of file
diff --git a/NetTunnelApp/Program.cs b/NetTunnelApp/Program.cs
new file mode 100644
index 0000000..7356590
--- /dev/null
+++ b/NetTunnelApp/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace NetTunnelApp
+{
+ internal static class Program
+ {
+ ///
+ /// 应用程序的主入口点。
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/NetTunnelApp/Properties/AssemblyInfo.cs b/NetTunnelApp/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..56bb32f
--- /dev/null
+++ b/NetTunnelApp/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("NetTunnelApp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("NetTunnelApp")]
+[assembly: AssemblyCopyright("Copyright © 2023")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("79995848-fd05-46f5-a7fe-46265e540e32")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/NetTunnelApp/Properties/Resources.Designer.cs b/NetTunnelApp/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..a34254f
--- /dev/null
+++ b/NetTunnelApp/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本: 4.0.30319.42000
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace NetTunnelApp.Properties
+{
+
+
+ ///
+ /// 强类型资源类,用于查找本地化字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// 返回此类使用的缓存 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NetTunnelApp.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/NetTunnelApp/Properties/Resources.resx b/NetTunnelApp/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/NetTunnelApp/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/NetTunnelApp/Properties/Settings.Designer.cs b/NetTunnelApp/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..a5fa1bc
--- /dev/null
+++ b/NetTunnelApp/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace NetTunnelApp.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/NetTunnelApp/Properties/Settings.settings b/NetTunnelApp/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/NetTunnelApp/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/NetTunnelApp/Properties/app.manifest b/NetTunnelApp/Properties/app.manifest
new file mode 100644
index 0000000..e8f334c
--- /dev/null
+++ b/NetTunnelApp/Properties/app.manifest
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/NetTunnelApp/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
deleted file mode 100644
index ed92695..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-//
-using System;
-using System.Reflection;
-[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/App.g.cs b/NetTunnelApp/obj/Debug/net6.0-windows/App.g.cs
deleted file mode 100644
index 28bb1c2..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/App.g.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A1E62818D7EBB48AC5E8E76F6BAC2BCA050E3CFF"
-//------------------------------------------------------------------------------
-//
-// 此代码由工具生成。
-// 运行时版本:4.0.30319.42000
-//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
-//
-//------------------------------------------------------------------------------
-
-using NetTunnelApp;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Controls.Ribbon;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace NetTunnelApp {
-
-
- ///
- /// App
- ///
- public partial class App : System.Windows.Application {
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public void InitializeComponent() {
-
- #line 5 "..\..\..\App.xaml"
- this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
-
- #line default
- #line hidden
- }
-
- ///
- /// Application Entry Point.
- ///
- [System.STAThreadAttribute()]
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public static void Main() {
- NetTunnelApp.App app = new NetTunnelApp.App();
- app.InitializeComponent();
- app.Run();
- }
- }
-}
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/App.g.i.cs b/NetTunnelApp/obj/Debug/net6.0-windows/App.g.i.cs
deleted file mode 100644
index 28bb1c2..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/App.g.i.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "A1E62818D7EBB48AC5E8E76F6BAC2BCA050E3CFF"
-//------------------------------------------------------------------------------
-//
-// 此代码由工具生成。
-// 运行时版本:4.0.30319.42000
-//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
-//
-//------------------------------------------------------------------------------
-
-using NetTunnelApp;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Controls.Ribbon;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace NetTunnelApp {
-
-
- ///
- /// App
- ///
- public partial class App : System.Windows.Application {
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public void InitializeComponent() {
-
- #line 5 "..\..\..\App.xaml"
- this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
-
- #line default
- #line hidden
- }
-
- ///
- /// Application Entry Point.
- ///
- [System.STAThreadAttribute()]
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public static void Main() {
- NetTunnelApp.App app = new NetTunnelApp.App();
- app.InitializeComponent();
- app.Run();
- }
- }
-}
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.cs b/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.cs
deleted file mode 100644
index 99e6077..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0F29C786CDED2A9EB262D4A59AC422C522507B21"
-//------------------------------------------------------------------------------
-//
-// 此代码由工具生成。
-// 运行时版本:4.0.30319.42000
-//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
-//
-//------------------------------------------------------------------------------
-
-using NetTunnelApp;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Controls.Ribbon;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace NetTunnelApp {
-
-
- ///
- /// MainWindow
- ///
- public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/NetTunnelApp;component/mainwindow.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\..\MainWindow.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 11 "..\..\..\MainWindow.xaml"
- ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
-
- #line default
- #line hidden
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.i.cs b/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.i.cs
deleted file mode 100644
index 99e6077..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/MainWindow.g.i.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0F29C786CDED2A9EB262D4A59AC422C522507B21"
-//------------------------------------------------------------------------------
-//
-// 此代码由工具生成。
-// 运行时版本:4.0.30319.42000
-//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
-//
-//------------------------------------------------------------------------------
-
-using NetTunnelApp;
-using System;
-using System.Diagnostics;
-using System.Windows;
-using System.Windows.Automation;
-using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Controls.Ribbon;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Media.Effects;
-using System.Windows.Media.Imaging;
-using System.Windows.Media.Media3D;
-using System.Windows.Media.TextFormatting;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.Windows.Shell;
-
-
-namespace NetTunnelApp {
-
-
- ///
- /// MainWindow
- ///
- public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
-
- private bool _contentLoaded;
-
- ///
- /// InitializeComponent
- ///
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- public void InitializeComponent() {
- if (_contentLoaded) {
- return;
- }
- _contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/NetTunnelApp;component/mainwindow.xaml", System.UriKind.Relative);
-
- #line 1 "..\..\..\MainWindow.xaml"
- System.Windows.Application.LoadComponent(this, resourceLocater);
-
- #line default
- #line hidden
- }
-
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.7.0")]
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
- void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
- switch (connectionId)
- {
- case 1:
-
- #line 11 "..\..\..\MainWindow.xaml"
- ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
-
- #line default
- #line hidden
- return;
- }
- this._contentLoaded = true;
- }
- }
-}
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfo.cs b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfo.cs
deleted file mode 100644
index fdad405..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfo.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// 此代码由工具生成。
-// 运行时版本:4.0.30319.42000
-//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
-//
-//------------------------------------------------------------------------------
-
-using System;
-using System.Reflection;
-
-[assembly: System.Reflection.AssemblyCompanyAttribute("NetTunnelApp")]
-[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
-[assembly: System.Reflection.AssemblyProductAttribute("NetTunnelApp")]
-[assembly: System.Reflection.AssemblyTitleAttribute("NetTunnelApp")]
-[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
-[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
-
-// 由 MSBuild WriteCodeFragment 类生成。
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfoInputs.cache b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfoInputs.cache
deleted file mode 100644
index 93aea0a..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.AssemblyInfoInputs.cache
+++ /dev/null
@@ -1 +0,0 @@
-a5e6a2f249466fbbff4e1ac5541eb864cdca1db1
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.GeneratedMSBuildEditorConfig.editorconfig b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.GeneratedMSBuildEditorConfig.editorconfig
deleted file mode 100644
index 486bc16..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.GeneratedMSBuildEditorConfig.editorconfig
+++ /dev/null
@@ -1,11 +0,0 @@
-is_global = true
-build_property.TargetFramework = net6.0-windows
-build_property.TargetPlatformMinVersion = 7.0
-build_property.UsingMicrosoftNETSdkWeb =
-build_property.ProjectTypeGuids =
-build_property.InvariantGlobalization =
-build_property.PlatformNeutralAssembly =
-build_property.EnforceExtendedAnalyzerRules =
-build_property._SupportedPlatformList = Linux,macOS,Windows
-build_property.RootNamespace = NetTunnelApp
-build_property.ProjectDir = C:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.csproj.AssemblyReference.cache b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.csproj.AssemblyReference.cache
deleted file mode 100644
index 30f7c32..0000000
Binary files a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp.csproj.AssemblyReference.cache and /dev/null differ
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.cache b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.cache
deleted file mode 100644
index 901f8f5..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.cache
+++ /dev/null
@@ -1,20 +0,0 @@
-NetTunnelApp
-
-
-winexe
-C#
-.cs
-C:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\obj\Debug\net6.0-windows\
-NetTunnelApp
-none
-false
-TRACE;DEBUG;NET;NET6_0;NETCOREAPP
-C:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\App.xaml
-11407045341
-
-4-1392306876
-1941675070116
-MainWindow.xaml;
-
-True
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.cache b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.cache
deleted file mode 100644
index 288e2c2..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.cache
+++ /dev/null
@@ -1,20 +0,0 @@
-NetTunnelApp
-1.0.0.0
-
-winexe
-C#
-.cs
-C:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\obj\Debug\net6.0-windows\
-NetTunnelApp
-none
-false
-TRACE;DEBUG;NET;NET6_0;NETCOREAPP
-C:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\App.xaml
-11407045341
-
-6745177533
-1941675070116
-MainWindow.xaml;
-
-True
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.lref b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.lref
deleted file mode 100644
index fab1e6e..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.i.lref
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-FC:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\MainWindow.xaml;;
-
diff --git a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.lref b/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.lref
deleted file mode 100644
index fab1e6e..0000000
--- a/NetTunnelApp/obj/Debug/net6.0-windows/NetTunnelApp_MarkupCompile.lref
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-FC:\Users\HuangXin\Documents\development\visual_studio\tunnel_windows\NetTunnelApp\MainWindow.xaml;;
-
diff --git a/NetTunnelSDK/NetTunnelSDK.vcxproj b/NetTunnelSDK/NetTunnelSDK.vcxproj
index 9a26392..ba88b08 100644
--- a/NetTunnelSDK/NetTunnelSDK.vcxproj
+++ b/NetTunnelSDK/NetTunnelSDK.vcxproj
@@ -166,6 +166,9 @@
NotUsing
+
+ NotUsing
+
diff --git a/NetTunnelSDK/NetTunnelSDK.vcxproj.filters b/NetTunnelSDK/NetTunnelSDK.vcxproj.filters
index 3fb3ee5..c7c2332 100644
--- a/NetTunnelSDK/NetTunnelSDK.vcxproj.filters
+++ b/NetTunnelSDK/NetTunnelSDK.vcxproj.filters
@@ -53,6 +53,9 @@
源文件
+
+ 源文件
+
diff --git a/NetTunnelSDK/wireguard.cpp b/NetTunnelSDK/wireguard.cpp
new file mode 100644
index 0000000..bcb5590
--- /dev/null
+++ b/NetTunnelSDK/wireguard.cpp
@@ -0,0 +1 @@
+#include "pch.h"
diff --git a/tunnel_windows.sln b/tunnel_windows.sln
index 4b451d0..216dc8f 100644
--- a/tunnel_windows.sln
+++ b/tunnel_windows.sln
@@ -5,10 +5,7 @@ VisualStudioVersion = 17.6.33801.468
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NetTunnelSDK", "NetTunnelSDK\NetTunnelSDK.vcxproj", "{1584BAD4-DBEC-43D2-BC06-08C23F02489A}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetTunnelApp", "NetTunnelApp\NetTunnelApp.csproj", "{C0FB06AC-AE53-4161-9248-C09D63822F07}"
- ProjectSection(ProjectDependencies) = postProject
- {1584BAD4-DBEC-43D2-BC06-08C23F02489A} = {1584BAD4-DBEC-43D2-BC06-08C23F02489A}
- EndProjectSection
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetTunnelApp", "NetTunnelApp\NetTunnelApp.csproj", "{79995848-FD05-46F5-A7FE-46265E540E32}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -32,18 +29,18 @@ Global
{1584BAD4-DBEC-43D2-BC06-08C23F02489A}.Release|x64.Build.0 = Release|x64
{1584BAD4-DBEC-43D2-BC06-08C23F02489A}.Release|x86.ActiveCfg = Release|Win32
{1584BAD4-DBEC-43D2-BC06-08C23F02489A}.Release|x86.Build.0 = Release|Win32
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|x64.ActiveCfg = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|x64.Build.0 = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|x86.ActiveCfg = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Debug|x86.Build.0 = Debug|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|Any CPU.Build.0 = Release|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|x64.ActiveCfg = Release|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|x64.Build.0 = Release|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|x86.ActiveCfg = Release|Any CPU
- {C0FB06AC-AE53-4161-9248-C09D63822F07}.Release|x86.Build.0 = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|x64.Build.0 = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Debug|x86.Build.0 = Debug|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|Any CPU.Build.0 = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|x64.ActiveCfg = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|x64.Build.0 = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|x86.ActiveCfg = Release|Any CPU
+ {79995848-FD05-46F5-A7FE-46265E540E32}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE