You will want to use this declaration:
[DllImport("Iphlpapi.dll")]
[return:MarshalAs(UnmanagedType.U4)]
static extern int CreateIpForwardEntry(ref MIB_IPFORWARDROW pRoute);
You can find the declaration of the MIB_IPFORWARDROW structure on
http://www.pinvoke.net.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"ttan" <tt**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
Hi Group,
Can someone show me how to use CreateIpForwardEntry() in C# to add a
static
route.
Thanks,