InternetReadFileEx

This function reads data from a handle opened by the InternetOpenUrl, FtpOpenFile, or HttpOpenRequest function.

At a Glance

Header file: Wininet.h
Windows CE versions: 2.12 and later

Syntax

BOOL InternetReadFileEx (HINTERNET hFile,
LPINTERNET_BUFFERS lpBuffersOut, DWORD dwFlags,
DWORD dwContext );

Parameters

hFile

[in] HINTERNET handle returned from a previous call to InternetOpenUrl, FtpOpenFile, or HttpOpenRequest.

lpBuffersOut

[out] Address of an INTERNET_BUFFERS structure that contains the data downloaded.

dwFlags

[in] Unsigned long integer variable that contains the flags controlling the download. Can be one of the following values:

Value Description
IRF_ASYNC Identical to WININET_API_FLAG_ASYNC.
IRF_SYNC Identical to WININET_API_FLAG_SYNC.
IRF_USE_CONTEXT Identical to WININET_API_FLAG_USE_CONTEXT.
IRF_NO_WAIT Do not wait for data. If there is data available, the function returns either the amount of data requested or the amount of data available (whichever is smaller).

dwContext

[in] Unsigned long integer variable that contains the context value used for asynchronous operations.

Return Values

Returns TRUE if successful, or FALSE otherwise.

See Also

InternetReadFile