How do I work with dial-up (RAS) connections in Windows using C#/.NET?

Adam Nofsinger picture Adam Nofsinger · Apr 6, 2009 · Viewed 12.8k times · Source

I need to be able to connect, disconnect, and re-connect a dial-up networking connection in a C# .NET Framework application. Creating the connection in the phone-book might also be useful/necessary.

Are there any classes or libraries written for C# or .NET out there that wrap all this functionality nicely for me? Anyone have some code they would be willing to share?

Note: Application is unattended, like a Kiosk, and thus requiring user action is unacceptable.

Answer

Jeff Winn picture Jeff Winn · Apr 9, 2009

Check out the DotRas project on CodePlex.com, it has the entire API completed.

http://www.codeplex.com/DotRas