Sign in to follow this  
Followers 0
tvkaiser

Internetwritefile

2 posts in this topic

I would like to transfer files with the function InternetWriteFile from wininet.dll. Up to opening the file everything is OK.

But if I want to write data now, I get the error message

ERROR_INVALID_PARAMETER, The parameter is incorrect.

CODE

$iInternetWriteFile = DllCall('wininet.dll', 'int', 'InternetWriteFile','long', $hFTPOpenFile, 'str', $sBuffer, 'long', $iBytesToWrite, 'long', $iBytesWritten)

Does someone have an idea, what's wrong?

Share this post


Link to post
Share on other sites



Search the scripts and scraps formum for ftp.au3 and you will find a function to upload a file via ftp, and some examples using dllcall with wininte.dll.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0