Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call Windows Dial-up form
Message
From
17/07/2001 18:20:47
 
 
To
17/07/2001 18:07:02
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00531781
Message ID:
00531788
Views:
9
>I found this way to call the Dial-up form from Win2000
>to make a RAS connection from inside VFP.
>
>!/n RasPhone x /Dial name_of_connection
>
>Could someone tell me a way to do the same on Win98 ?
>
>Thanks in Advance
>
>Peter


Hello
DECLARE INTEGER InternetDial IN WinInet ;
 INTEGER nHandle, STRING @lpcDialUp, INTEGER nAccessType, INTEGER @nConnect_Handle, ;
 INTEGER nFlags

Then:
PROCEDURE DialUp
 LPARAMETERS NumeConexiune,Indicator
 LOCAL rezultat, idconexiune, idfereastra
 idconexiune = 0
 idfereastra = 0
 
 IF TYPE("NumeConexiune") != "C" OR ;
   TYPE("Indicator") != "N"
  RETURN -1
 ENDIF
 
 IF LEN(ALLTRIM(NumeConexiune)) = 0
  RETURN -1
 ENDIF
 

 rezultat = InternetDial(idFereastra, @NumeConexiune, indicator, @idconexiune, 0)
 
 RETURN idconexiune
ENDPROC
The NumeConexiune variable contains the name of the dial-up connection, as defined in DialUp Networking.

Hope this helps
Grigore Dolghin
Class Software.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform