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)
WinHttpQueryDataAvailable
..msdn    Add comment     W32 Constants      Translate this page
The WinHttpQueryDataAvailable function returns the number of bytes of data that are immediately available to be read with WinHttpReadData.
Code examples:
Custom HttpRequest class (WinHTTP)
Declaration:
BOOL WinHttpQueryDataAvailable(
  HINTERNET hRequest,
  LPDWORD lpdwNumberOfBytesAvailable
);
FoxPro declaration:
DECLARE INTEGER WinHttpQueryDataAvailable IN winhttp;
    INTEGER hRequest,;
    INTEGER @lpdwNumberOfBytesAvailable

Parameters:
hRequest
[in] Valid HINTERNET handle, as returned by WinHttpOpenRequest.

lpdwNumberOfBytesAvailable
[out, optional] Pointer to an unsigned long integer variable that receives the number of available bytes.
Return value:
Returns TRUE if the function succeeds, or FALSE otherwise.
My comment:
MSDN: WinHttpReceiveResponse must have been called for this handle and have completed before WinHttpQueryDataAvailable is called.

This function returns the number of bytes of data that are available to read immediately by a subsequent call to WinHttpReadData. If no data is available and the end of the file has not been reached (for a synchronous session) the request waits until data becomes available.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-09 09:59:05
Modified: 2003-04-09 10:02:00
Visited in last 7 days: 24
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.79.109)
16 sec.Function: 'WinHttpCrackUrl'
34 sec.Function: 'CryptImportKey'
53 sec.Function: 'GetSecurityDescriptorOwner'
1.18 min.Function: 'FindNextChangeNotification'
1.5 min.Function: 'SCardListReaders'
1.78 min.Function: 'SetKeyboardState'
2.07 min.Function: 'getservbyname'
2.38 min.Function: 'SQLFreeHandle'
2.68 min.Function: 'UrlGetPart'
2.98 min.Function: 'CertFreeCertificateContext'
Google
Advertise here!