Share via


InternetWriteFile (Windows Embedded CE 6.0)

1/6/2010

This function writes data to an open Internet file.

Syntax

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

Parameters

  • 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 Value

Returns TRUE if successful, or FALSE otherwise.

Remarks

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

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE 2.12 and later

See Also

Reference

WinInet Functions
FtpOpenFile
HttpSendRequestEx
InternetCloseHandle

Concepts

About HINTERNET Handles