Autodialing vpn connections

J

José Luis

Hi to all

Do anyone knows how can I open an VPN connection defined as the automatic
work connection in Start->Configuration->Connections->Advanced->Network
selection via code?

I usually use ftp connections and when I try to open a session, the system
autodials the gprs connection, but i'm not able to make the vpn works.

Any hint about it?

I'm using WM6 and I can use any framework that solves my problem.

Regards
 
P

Peter Foot [MVP]

You can use Connection Manager to achieve this. Since it knows that your VPN
connection provides a bridge from "The Internet" to "Work" when you request
a connection to "Work" it should dial the appropriate GPRS connection and
then the VPN. You can either P/Invoke the ConnMgrEstablishConnection
yourself or use one of the wrapper libraries e.g.
(http://inthehand.com/content/Mobile.aspx)

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top