Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote access from VFP
Message
From
30/10/1997 05:56:08
 
 
To
29/10/1997 13:49:59
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00057237
Message ID:
00057344
Views:
31
>Hello.
>How I can to establish connection with Internet server from Visual FoxPro.
>To execute the remote access to Network.
>Thanks.
>Denis Gavrikov.

Hello Geoege.
I think to use the RASDIAL function from RASAPI32.The RasDial function
establishes a Remote Access Service (RAS) connection between a RAS client
and a RAS server.
I have following code:

DECLARE INTEGER RasDial IN rasapi32;
STRING DialExtetions,;
STRING cPhonebookfile,;
STRING @cParameters,;
INTEGER nCallBack,;
STRING cCallBack,;
INTEGER @nConnHandle

nConnHandle =0

* RASDIALPARAMS STUCTURE

szEntryName = 'NESERVER'+CHR(0)
szPhoneNumber = '7379600'+CHR(0)
szCallBackNumber = ''+CHR(0)
szUserName = 'Administrator'+CHR(0)
szPassword = 'MyPassword' +CHR(0)
szDomain = 'DOMAIN' +CHR(0)


cParam = CHR(28)+ CHR(4)+CHR(0)+CHR(0)+;
PADR(szEntryName, 256+1)+;
PADR(szPhoneNumber, 128+1)+;
PADR(szCallBackNumber, 128+1)+;
PADR(szUserName, 256+1)+;
PADR(szPassword, 256+1)+;
PADR(szDomain,15+1)+SPACE(3)

nRes = RasDial(NULL,NULL,@cParam,0,NULL,@nConnHandle)

But it is do't work. I do't understand why ?
Thanks for any helps.
Denis Gavrikov.
Previous
Reply
Map
View

Click here to load this message in the networking platform