我如何在Windows拨号(RAS)的连接工作,使用C#/。NET?如何在、工作、RAS、Windows

2023-09-04 00:12:00 作者:江湖书生

我需要能够连接,断开连接,重新连接在C#.NET Framework应用程序一个拨号网络连接。在创建电话簿连接可能也是有益/必要的。

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.

是否有C#或.NET编写了那里,包装所有这些功能都很好,我的任何类或库?任何人有一些code,他们愿意分享?

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.

推荐答案

查看上codePlex.com的DotRas项目,它已经完成了全部的API。

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

HTTP://www.$c$cplex.com/DotRas