Contents Index Topic Contents | ||
Previous Topic: InternetReadFile Next Topic: InternetSetFilePointer |
InternetReadFileEx
InternetReadFileEx( IN HINTERNET hFile, OUT LPINTERNET_BUFFERS lpBuffersOut, IN DWORD dwFlags, IN DWORD dwContext );Reads data from a handle opened by the InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest function.
- Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo when necessary.
- hFile
- HINTERNET handle returned by the InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest function.
- lpBuffersOut
- Address of an INTERNET_BUFFERS structure that contains the data downloaded.
- dwFlags
- DWORD variable that contains the flags controlling the download. Can be one of the following values:
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
- DWORD variable that contains the context value used for asynchronous operations.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.