Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function writes data to an open Internet file.
Syntax
BOOL InternetWriteFile( HINTERNET hFile, LPCVOID lpBuffer, DWORD dwNumberOfBytesToWrite, LPDWORD lpdwNumberOfBytesWritten ); |
Parameters
- hFile
-
[in] Valid HINTERNET handle returned from a previous call to FtpOpenFileor an HINTERNEThandle 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 Value
Returns TRUE if successful, or FALSE otherwise.
Remarks
When the application is sending data, it must call InternetCloseHandleto end the data transfer.
Requirements
Header | wininet.h |
Library | wininet.lib |
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
FtpOpenFileHttpSendRequestEx
InternetCloseHandle
WinInet Functions
Concepts
About HINTERNET HandlesInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.