Programatically Change "Advanced TCP/IP Settings" - un-check "Use Default Gate Way on Remote Network"
===

![enter image description here][1]


Description :

I created a Dial-Up Connection Programatically to commnunicate with my device and the Laptop. And once the connection is established with the Dial-Up connection Created, My internet connection which is connected via LAN is not working and the status of my LAN connection ( used for internet connection remains ) connected.

To over come this I need to un-check the "Use Defualt Gate Way on Remote Network", option by, `right click my dial-up connection -> properties -> Netwroking TAB -> Select Internet Protocol (TCP/IP) -> Properties -> Advanced -> I get Advanced TCP/IP settings -> Unchek "Use Default Gate Way on Remote Network".`

How to to this programatically? Can I use any APIs.


  [1]: http://i.stack.imgur.com/gn31O.png