473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to CreateIpForwardEntry() in C#


Hi Group,

Can someone show me how to use CreateIpForwardEntry() in C# to add a static
route.

Thanks,
Nov 17 '05 #1
1 5112
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,

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: blazerguns | last post by:
Hi all, Is there any way to set persistent ip route programmatically in win2k3? Like we can do so from cmd with -p option. Any code will be of great help Varun
3
by: cyberco | last post by:
I've posted this question in 'microsoft.public.dotnet.framework.compactframework' as well, but despite the great help I still haven't solved the problem. So before going the C++ route I would like...
8
by: cyberco | last post by:
I'm developing for Windows Mobile 2005 PPC using Visual Studio 2005. I need to invoke methods on a DLL (Iphlpapi.dll) but I can't get this working from C# using p/invoke so I want to write some C...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.