InternetWriteFileInternetWriteFile*
*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.

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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.