Internet connection PPC2003 - VS2005

Tech-Archive recommends: Fix windows errors by optimizing your registry




Hi,


I'm developing an application that opens a socket whith a remote server
via GPRS and I think the best way is using "wininet.dll" for open the
connection. That's right?

The tools used: VS2005, PPC2003, VB.NET. There is no SDK instaled (With
VS2005 is not needed??)

The problem is that I can't acces to the function "InternetDial"
neither "InternetHangUp". Doesn't find entrypoint to this functions.
I have the same problem whith the emulador and whith the device. The
same code for a PC application is ok. So the problem is whith the file
"wininet.dll" in the emulator/device?

Function declaration
-------------------------------------
Private Declare Function InternetDial Lib "wininet.dll" (ByVal
hwndParent As IntPtr, _
ByVal lpszConnectoid As String, ByVal dwFlags As Int32, ByRef
lpdwConnection As Int32, _
ByVal dwReserved As Int32) As Int32

Private Declare Function InternetAttemptConnect Lib "wininet.dll"
(ByVal dwReserved As Int32) As Int32

Private Declare Function InternetGetConnectedState Lib "wininet.dll"
(ByRef lpdwFlags As Int32, _
ByVal dwReserved As Int32) As Boolean

Private Declare Function InternetHangUp Lib "wininet.dll" _
(ByVal lpdwConnection As Int32, ByVal dwReserved As Int32) As
Int32
-------------------------------------
called from
DResult = InternetDial(Me.Handle, "My Connection",
DialUpOptions.INTERNET_DIAL_FORCE_PROMPT, mlConnection, 0)
DResult = InternetAttemptConnect(0)
Result = InternetHangUp(mlConnection, 0&)
-------------------------------------


Does anybody know what can be the cause of this error?
Thanks in advance

Rick

.



Relevant Pages

  • Re: Internet connection PPC2003 - VS2005
    ... You should use the Connection Manager API to connect to Inernet (e. ... ByVal lpszConnectoid As String, ByVal dwFlags As Int32, ByRef ... Private Declare Function InternetAttemptConnect Lib "wininet.dll" ...
    (microsoft.public.pocketpc.developer)
  • Code conversion
    ... Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef ... ByVal dwReserved As Int32) As Boolean ... Private Declare Function InternetDial Lib "Wininet.dll" (ByVal hwndParent As ... 'Modem connection. ...
    (microsoft.public.dotnet.languages.csharp)
  • Code conversion
    ... Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef ... ByVal dwReserved As Int32) As Boolean ... Private Declare Function InternetDial Lib "Wininet.dll" (ByVal hwndParent As ... 'Modem connection. ...
    (microsoft.public.dotnet.general)
  • Re: Clipboard Question
    ... Private Declare Function OpenClipboard Lib "user32.dll" (ByVal hwnd As Int32) As Int32 ... Clipboard Object Changes in Visual Basic .NET ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GetStdHandle .NET
    ... As Int32) As IntPtr ... Private Declare Function CloseHandle Lib "kernel32.dll" (ByVal hObject As ...
    (microsoft.public.dotnet.languages.vb)