General information
Category:
Windows API functions
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only