Jump to content

Recommended Posts

Posted

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?

Posted

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?

Can you post a little more of your code please for us to work on?

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
×
×
  • Create New...