How to access remote connections

  • Thread starter Thread starter rkbnair
  • Start date Start date
R

rkbnair

I'm trying to run Cisco VPN to access a remote machine through c# code. By
googling, I came to know that I have to use RASAPI.DLL in order to perform
this. Anybody has any information on how to achieve this. All I'm looking for
is a way to connect to VPN via code.

Thanks in advance.
 
Hi,

We are not familiar with Cisco VPN. This newsgroup mainly focuses on the
.Net Windows Forms GUI programming which does not cover the network related
issues.

Anyway, based on my experience, we may use the RAS API set to access VPN.
If you installed the Windows SDK, there is some RAS API samples in the
[PlatformSDK folder]\Samples\NetDs\Ras. More specific, the RasDial.c file
may demonstrate what you need.

It is written in C language, you may perform the p/invoke to simulate the
logic in the C#.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top