Contents Index Topic Contents | ||
Previous Topic: InternetUnlockRequestFile Next Topic: Automatic Dialing Functions |
InternetWriteFile
BOOL InternetWriteFile( IN HINTERNET hFile, IN LPCVOID lpBuffer, IN DWORD dwNumberOfBytesToWrite, OUT LPDWORD lpdwNumberOfBytesWritten );Writes data to an open Internet file.
- Returns TRUE if the function succeeds, or FALSE otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo when necessary.
- hFile
- Valid handle returned from a previous call to FtpOpenFile or an HINTERNET handle sent by HttpSendRequestEx.
- lpBuffer
- Address of a buffer that contains the data to be written to the file.
- dwNumberOfBytesToWrite
- Number of bytes to write to the file.
- lpdwNumberOfBytesWritten
- Address of a variable that receives the number of bytes written to the buffer. InternetWriteFile sets this value to zero before doing any work or error checking.
When the application is sending data, it must call InternetCloseHandle to end the data transfer.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.