Programatically set Gateway
Hello
I am writing an app to e mail a document to a client automatically. To test this, I set up the gateway in the network settings and ran my code.
This worked fine.
I need to be able to set the gateway in my software so that my app can send mails but not allow the user of the pc access to the internet (as they would have if I put the address in the network setting).
When my app ends, I need to remove the gateway. I have looked at the help in VS2005 and it shows how to read the gateway but not how to set it and unset it.
Does anyone have any ideas?
Cheers
Peter

