Anyone know why this is failing (returning 0):

invoke InternetConnect,addr hOpen,addr FTPAddr,INTERNET_DEFAULT_FTP_PORT,addr FTPUser,addr FTPPass,INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,addr crap

InternetOpen works, but the code above doesn't even try to connect, i think there might be something wrong with the params. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetconnect.asp)

ftpaddr, pass, user are null terminated strings, hOpen is ok, crap i dunno what's used for, it's a dword.

Thanks.
Posted on 2003-06-27 13:15:48 by Ghirai
i don't have a documentation about this api, but i can't believe that you have to pass the address of a handle (very unusual):



invoke InternetConnect,[b]addr hOpen[/b],addr FTPAddr,INTERNET_DEFAULT_FTP_PORT,addr FTPUser,addr FTPPass,INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,addr crap

try this one


invoke InternetConnect,[b]hOpen[/b],addr FTPAddr,INTERNET_DEFAULT_FTP_PORT,addr FTPUser,addr FTPPass,INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,addr crap
Posted on 2003-06-28 01:22:26 by hartyl
Cool, i'll try, thanks.

Yup, works great. How did you know?
Posted on 2003-06-29 10:48:18 by Ghirai