Group: Internet Functions (WinInet) - Library: wininet
Custom HttpRequest class (WinINet)
BOOL WINAPI InternetQueryDataAvailable(
HINTERNET hFile,
LPDWORD lpdwNumberOfBytesAvailable,
DWORD dwFlags,
DWORD dwContext
);
DECLARE INTEGER InternetQueryDataAvailable IN wininet;
INTEGER hFile,;
INTEGER @ lpdwBytesAvailable,;
INTEGER dwFlags,;
INTEGER dwContext
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.
TRUE indicates success. FALSE indicates failure.
Especially long name for this function, makes me sick. Though not the longest, see InternetGetConnectedStateEx and InternetGetLastResponseInfo.