Why does InetClose always returns false?
example code:
Local $hDownload = InetGet($oLink.href, $Downloadfile,1,1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $InetCloseResult = InetClose($hDownload)
;InetCloseResult this always returns False but would of expected True but perhaps this function is just a safety check
This might be an issue of documentation. Your loop doesn't end until the transfer is complete, and I believe the handle may have been closed automatically at that time, so trying to re-close it fails. The help file does explicitly say to close the handle, but in the case of background download, maybe that doesn't apply after normal end of the transfer. You would still close the handle to cancel a transfer.