InternetReadFileEx

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

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. 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 Values

Returns TRUE if successful, or FALSE otherwise.

Requirements

OS Versions: Windows CE 2.12 and later.
Header: Wininet.h.
Link Library: Wininet.lib.

See Also

About HINTERNET Handles | FtpOpenFile | HttpOpenRequest | InternetOpenUrl | InternetReadFile | WinInet Functions

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.