---
name: "InternetReadFileExA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/InternetReadFileExA"
---

# InternetReadFileExA(3w)

## NAME

**InternetReadFileExA** (WININET.@)

## SYNOPSIS

BOOL InternetReadFileExA\
  (\
   HINTERNET           *hFile*,\
   LPINTERNET\_BUFFERSA *lpBuffersOut*,\
   DWORD               *dwFlags*,\
   DWORD\_PTR           *dwContext*\
  )

## DESCRIPTION

Read data from an open internet file.

## PARAMS

*hFile* **\[In\]**  Handle returned by InternetOpenUrl or HttpOpenRequest.

*lpBuffersOut* **\[In/Out\]**  Buffer.

*dwFlags* **\[In\]**  Flags. See notes.

*dwContext* **\[In\]**  Context for callbacks.

## RETURNS

**TRUE** on success **FALSE** on failure.

## NOTES

The parameter *dwFlags* include zero or more of the following flags: \
 IRF\_ASYNC - Makes the call asynchronous.\
 IRF\_SYNC - Makes the call synchronous.\
 IRF\_USE\_CONTEXT - Forces dwContext to be used.\
 IRF\_NO\_WAIT - Don't block if the data is not available, just return what is available.

However, in testing **IRF\_USE\_CONTEXT** seems to have no effect **-** *dwContext* isn't used.

## SEE

InternetOpenUrlA(), **[HttpOpenRequestA(3w)](/HttpOpenRequestA/3w.md)**

## IMPLEMENTATION

Declared in **"internet.h"**.

Implemented in **"dlls/wininet/internet.c"**.

Debug channel **"wininet"**.
