
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".
I am using RAS functions to create a Phonebook for my dial-up connection. Is there any structures available to make this as an option. I didnd found any structure parameters to make this as an option. Please advice..
How to to this programatically? Can I use any APIs.
By unsetting the
RASEO_RemoteDefaultGatewayflag while creating phone book will disable this option.This flag can be Unset using
RASENTRYstructuredwoptionsmember.Content from Microsoft SDK:
RASEO_RemoteDefaultGateway– If this flag is set, the default route for IP packets is through the dial-up adapter when the connection is active.If this flag is clear, the default route is not modified.This flag corresponds to the Use default gateway on remote network check box in the TCP/IP settings dialog box.