InternetWriteFile

This function writes data to an open Internet file.

BOOL InternetWriteFile (
HINTERNET hFile,
LPCVOID lpBuffer, 
DWORD dwNumberOfBytesToWrite,
LPDWORD lpdwNumberOfBytesWritten);

Parameters

  • hFile
    [in] Valid HINTERNET handle returned from a previous call to FtpOpenFile or an HINTERNET handle sent by HttpSendRequestEx.
  • lpBuffer
    [in] Address of a buffer that contains the data to be written to the file.
  • dwNumberOfBytesToWrite
    [in] Unsigned long integer value that contains the number of bytes to write to the file.
  • lpdwNumberOfBytesWritten
    [out] Address of an unsigned long integer variable that receives the number of bytes written to the buffer. This function sets this value to zero before doing any work or error checking.

Return Values

Returns TRUE if successful, or FALSE otherwise.

Remarks

When the application is sending data, it must call InternetCloseHandle to end the data transfer.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.12 and later Wininet.h   Wininet.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

HINTERNET,FtpOpenFile, HttpSendRequestEx, InternetCloseHandle

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.