diff --git a/Netch/NativeMethods.cs b/Netch/NativeMethods.cs index 510509f1..4dd0b886 100644 --- a/Netch/NativeMethods.cs +++ b/Netch/NativeMethods.cs @@ -13,7 +13,7 @@ namespace Netch /// 适配器索引 /// 跃点数 /// 是否成功 - [DllImport("NetchCore", CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateRoute")] + [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateRoute")] public static extern bool CreateRoute(string address, int cidr, string gateway, int index, int metric = 0); /// @@ -25,7 +25,7 @@ namespace Netch /// 适配器索引 /// 跃点数 /// 是否成功 - [DllImport("NetchCore", CallingConvention = CallingConvention.Cdecl, EntryPoint = "DeleteRoute")] + [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl, EntryPoint = "DeleteRoute")] public static extern bool DeleteRoute(string address, int cidr, string gateway, int index, int metric = 0); [DllImport("dnsapi", EntryPoint = "DnsFlushResolverCache")] diff --git a/binaries b/binaries index 7b5ce306..5c1f0e6e 160000 --- a/binaries +++ b/binaries @@ -1 +1 @@ -Subproject commit 7b5ce30669a97b655a0ee90741d18d5d275d4204 +Subproject commit 5c1f0e6e509886c14d20185a102db2dcba87b802