Question

How do I write code to connect through Windows VPN client?

I want this process to happen invisibly during logon...

Please help..

Thanks

Was it helpful?

Solution

Don't bother with code. You can configure windows to connect automatically to the vpn upon logon.

OTHER TIPS

The Remote Access Service API is what you're after, specifically the RasDial function:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa377004(v=vs.85).aspx

Remember that you must call RasHangUp before your application exits so that the connection is closed cleanly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top