Jump to content

Internetwritefile


Recommended Posts

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?

Link to comment
Share on other sites

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?
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...