Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying routing table using .NET (C#)

Is there any way to modify routing tables using the .NET framework? Or do I have to use P/Invoke with Windows API? In that case, which APIs would be most helpful? Can someone point me in the right direction here?

If you have a code example in C# I'd be most grateful!

like image 583
rickythefox Avatar asked Apr 23 '26 12:04

rickythefox


1 Answers

You can do it with P/Invoke. The best example I can find on this is here.

like image 197
TheCodeKing Avatar answered Apr 26 '26 01:04

TheCodeKing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!