LoadFile
Back to index
 

Description:
function that exported from WEBLOAD.DLL replacements.

Definition:
function LoadFile(app: THandle; url, tempfile, ua, ref: PChar):PChar; stdcall;

Variables:
app - calling process handle
url - "http://" url of file to download
tempfile - temporary file path, where downloaded file should be saved
ua - string, that should be used as HTTP user agent
ref - HTTP referer string

Should return:
content-type of downloaded file - if success
"Cancelled" string - if failed or cancelled

Notes:

  1. Strict usage of variables required!
  2. Currently Imager can display only GIF, JPEG and PNG downloaded via WEBLOAD.DLL
 
© 1999-2001 Alexander S. Tereschenko