InternetReadFile Reads data from a handle opened by the InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest function. VB4-32,5,6 Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer |
Operating Systems Supported |
Requires Windows NT 4.0 or later; Win9x/ME: Not supported |
· hFile Valid handle returned from a previous call to InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest.
· lpBuffer Address of a buffer that receives the data read.
· dwNumberOfBytesToRead Number of bytes to read.
· lpNumberOfBytesRead Address of a variable that receives the number of bytes read. The InternetReadFile function sets this value to zero before doing any work or error checking. |
Returns TRUE if successful or FALSE otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo when necessary. |
|