IAPI::InternetDownloadFile

property InternetDownloadFile.

Downloads a file from a Internet with HTTP/HTTPS or FTP.

 

HRESULT InternetDownloadFile(
  BSTR URL,
  BSTR localFilename,
  long *pVal
);

Parameters

URL

[in] .   String containing Web location for a file

         prepended with http://, https:// or ftp://

localFilename

[in] .   Full qualified local filename to download ( e.g "c:/Video/README.MPG" )

         (!) Prepending with ‘|’, this property will block till the end of download.

         (aka "|c:/Video/README.MPG" instead of "c:/Video/README.MPG")

pVal

[out, retval] The returned value is 1 ( success ) or 0 ( failure )

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI