Using Win32 functions in Visual FoxPro Image Gallery
HTTP Functions (WinHTTP)
WinHttpAddRequestHeaders
WinHttpCloseHandle
WinHttpConnect
WinHttpCrackUrl
WinHttpOpen
WinHttpOpenRequest
WinHttpQueryDataAvailable
WinHttpQueryHeaders
WinHttpReadData
WinHttpReceiveResponse
WinHttpSendRequest
WinHttpSetCredentials
Code examples:
Custom HttpRequest class (WinHTTP)
WinHttpReadData
..msdn    Add comment     W32 Constants      Translate this page
The WinHttpReadData function reads data from a handle opened by the WinHttpOpenRequest function.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
BOOL WinHttpReadData(
  HINTERNET hRequest,
  LPVOID lpBuffer,
  DWORD dwNumberOfBytesToRead,
  LPDWORD lpdwNumberOfBytesRead
);
FoxPro declaration:
DECLARE INTEGER WinHttpReadData IN winhttp;
    INTEGER   hRequest,;
    STRING  @ lpBuffer,;
    INTEGER   dwNumberOfBytesToRead,;
    INTEGER @ lpdwBytesRead
Parameters:
hRequest
[in] Valid HINTERNET handle returned from a previous call to WinHttpOpenRequest. WinHttpReceiveResponse or WinHttpQueryDataAvailable must have been called for this handle and have completed before WinHttpReadData is called.

lpBuffer
[out] Pointer to a buffer that receives the data read.

dwNumberOfBytesToRead
[in] Unsigned long integer value that contains the number of bytes to read.

lpdwNumberOfBytesRead
[out] Pointer to an unsigned long integer variable that receives the number of bytes read.
Return value:
Returns TRUE if successful, or FALSE otherwise.
My comment:
MSDN: If you are using WinHttpReadData synchronously, and the return value is TRUE and the number of bytes read is zero, the transfer has been completed and there are no more bytes to read on the handle. This is analogous to reaching end-of-file in a local file.
Word Index links for the WinHttpReadData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-09 10:02:28
Modified: 2003-04-09 10:04:28
Visited in last 7 days: 101
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.159.209.32)
55 sec.Function: 'waveOutReset'
1.8 min.Function: 'StartDoc'
2.33 min.Function: 'SetDlgItemInt'
Google
Advertise here!