From 86cebfcf14217e00d63989c954428d27bd71eeca Mon Sep 17 00:00:00 2001 From: Netch Date: Tue, 10 Aug 2021 09:04:52 +0800 Subject: [PATCH] Update README.md --- RouteHelper/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RouteHelper/README.md b/RouteHelper/README.md index 01dce924..138307cb 100644 --- a/RouteHelper/README.md +++ b/RouteHelper/README.md @@ -10,20 +10,20 @@ BOOL DeleteRoute(USHORT inet, const char* address, UINT8 cidr, const char* gatew ```csharp [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern ulong ConvertLuidToIndex(ulong id); +public static extern uint ConvertLuidToIndex(ulong id); [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern bool CreateIPv4(string address, string netmask, ulong index); +public static extern bool CreateIPv4(string address, string netmask, uint index); [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern bool CreateUnicastIP(AddressFamily inet, string address, byte cidr, ulong index); +public static extern bool CreateUnicastIP(AddressFamily inet, string address, byte cidr, uint index); [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern bool RefreshIPTable(AddressFamily inet, ulong index); +public static extern bool RefreshIPTable(AddressFamily inet, uint index); [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern bool CreateRoute(AddressFamily inet, string address, byte cidr, string gateway, ulong index, ulong metric); +public static extern bool CreateRoute(AddressFamily inet, string address, byte cidr, string gateway, uint index, uint metric); [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl)] -public static extern bool CreateRoute(AddressFamily inet, string address, byte cidr, string gateway, ulong index, ulong metric); +public static extern bool CreateRoute(AddressFamily inet, string address, byte cidr, string gateway, uint index, uint metric); ```