Partager via


InternetReadFileEx

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Parameters

  • 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. The following table shows the possible values. This parameter can be one of these 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 Value

Returns TRUE if successful, or FALSE otherwise.

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

FtpOpenFile
HttpOpenRequest
InternetOpenUrl
InternetReadFile
WinInet Functions

Concepts

About HINTERNET Handles