locked
Internet connection RRS feed

  • Question

  • I'm developing a c# application on a Vodafone v1640 pockect PC ( alias Qtek 9090).

    I've an internet connection configured. My problem is how to start this internet connection from C#. I need to connect to a FTP site and I've write my class using wininet.dll, but the internet connection doesn't start automatically. how can i do this ??

     

    thanks

    Tuesday, April 4, 2006 1:35 PM

Answers

  • Thanks Andrew for your reply. I've solved the problem using the following API in the cellcore.dll.

    [DllImport("cellcore.dll")]

    private static extern int ConnMgrEstablishConnectionSync(ref ConnectionInfo ci, ref IntPtr phConnection, uint dwTimeout, ref uint pdwStatus);

    This API establish an UMTS or GPRS connection.

     

    Michele

    Monday, April 10, 2006 8:32 AM

All replies

  • Can you add a code snippet to show what you are doing?

    One way is to use the InternetOpen function.. here is the wrapper code:

    http://www.pinvoke.net/default.aspx/wininet/InternetOpen.html

    Tuesday, April 4, 2006 2:10 PM
  • Thanks Andrew for your reply. I've solved the problem using the following API in the cellcore.dll.

    [DllImport("cellcore.dll")]

    private static extern int ConnMgrEstablishConnectionSync(ref ConnectionInfo ci, ref IntPtr phConnection, uint dwTimeout, ref uint pdwStatus);

    This API establish an UMTS or GPRS connection.

     

    Michele

    Monday, April 10, 2006 8:32 AM