Open VPN connection from code

D

Davide

Hello.

I am developing an application for a Windows CE 4.2 device using .NET
CF and OpenNetCF v.1.1.
I need to start a VPN connection (which I have manually created using
"Network amd Dial-Up Copnnections" manager on the device) from my
application by clicking a button and then activating it. Can this be
achieved in .NET CF ? How can this be done ?

Thank you in advance for helping.

Best regards.


Davide Pozzi
 
D

Davide

Hello Simon and thank you for the answer.

I have anyway already taken a look at this class but cannot figure out
how to identify the connection I want to start with the Connection
manager class. Can you help on this class usage ?

Thank you in advance.

Cheers.


Davide
 
D

Davide

I have found out why I cannot successfully work with the
ConnectionManager class provided with OpenNETCF. This class needs the
"cellcore.dll" library which seems not to be included into Windows CE
devices, but only on Windows Mobile ones...This is really annoying:
which other approach can I follow to solve my problem ?


Davide
 
G

Guest

Hi Davide,

Oh right I didn't know that. I never use Windows CE devices. I guess my
problems I have had are slightly easier than yours in that I don't need a VPN
and I just simply create a GUID of the Web Service IP address and
ConnectionManager works out for me whether it needs to use GPRS, Wi-fi etc..

You will probebly need a P/Invoke on the CE devices. I would certainly start
in that area.

Regards
Simon.
 
D

Davide

Hi Simon.

I have found a .NET CF component from Intelliprog which enables (they
have used P/Invoke on the CE devices to develop it, I think) to start a
VPN from code exploiting a RAS connection (this is the way VPN
connections are managed). The problem is that RAS connection is a dial
up one and so it needs a phone number and I must verify if the RAS
connection works with XP Pro (which the client has)...I see no easy
solutions for this problem (if only that cellcore.dll had been put into
Windows CE .NET)...

Regards.


Davide
 

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