Skip to content

Files

Latest commit

 

History

History
62 lines (43 loc) · 1.33 KB

InternetQueryDataAvailable.md

File metadata and controls

62 lines (43 loc) · 1.33 KB

Home

Function name : InternetQueryDataAvailable

Group: Internet Functions (WinInet) - Library: wininet


This function queries the amount of data available.


Code examples:

Custom HttpRequest class (WinINet)

Declaration:

BOOL WINAPI InternetQueryDataAvailable(
	HINTERNET hFile,
	LPDWORD lpdwNumberOfBytesAvailable,
	DWORD dwFlags,
	DWORD dwContext
);  

FoxPro declaration:

DECLARE INTEGER InternetQueryDataAvailable IN wininet;
	INTEGER   hFile,;
	INTEGER @ lpdwBytesAvailable,;
	INTEGER   dwFlags,;
	INTEGER   dwContext  

Parameters:

hFile Valid Internet file handle, as returned by InternetOpenUrl, FtpOpenFile, or HttpOpenRequest.

lpdwNumberOfBytesAvailable Optional. Long pointer to a variable that receives the number of available bytes.

dwFlags Reserved; set to zero.

dwContext Reserved; set to zero.


Return value:

TRUE indicates success. FALSE indicates failure.


Comments:

Especially long name for this function, makes me sick. Though not the longest, see InternetGetConnectedStateEx and InternetGetLastResponseInfo.