How can I programmatically create a Windows VPN connection?

后端 未结 7 910
小鲜肉
小鲜肉 2021-02-01 22:23

I have a support environment where we connect to many of our customers\' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN conne

7条回答
  •  梦如初夏
    2021-02-01 22:56

    Look up the RAS API (Remote Access Service), it's a win32 dll, but you can call it from C#. Here are some links that may help you get started:

    • http://msdn.microsoft.com/en-us/library/aa446741(VS.85).aspx

    • http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/28125f40-9c3b-4e77-9bfb-8a975e9b3457/

提交回复
热议问题