IWizURLDownloader

[
    object, 
    uuid(3E694A0D-9C10-4724-BCAE-687D87451C08), 
    dual, 
    nonextensible, 
    helpstring("IWizURLDownloader Interface"), 
    pointer_default(unique) 
] 
interface IWizURLDownloader : IDispatch{ 
    [id(1), helpstring("method AddURL")] HRESULT AddURL([in] BSTR bstrURL); 
    [id(2), helpstring("method Download")] HRESULT Download(void); 
    [id(3), helpstring("method GetResultFileName")] HRESULT GetResultFileName([in] BSTR bstrURL, [out,retval] BSTR* bstrResultFileName); 
    [propget, id(4), helpstring("property DownloadFilePath")] HRESULT DownloadFilePath([out, retval] BSTR* pVal); 
    [propput, id(4), helpstring("property DownloadFilePath")] HRESULT DownloadFilePath([in] BSTR newVal); 
    [propput, id(5), helpstring("property Title")] HRESULT Title([in] BSTR newVal); 
};
 
ProgID
WizTools.WizURLDownloader
C/C++头文件
WizTools.h; WizTools_i.c
 

方法 AddURL

添加一个需要下载的URL

参数

  • [in] BSTR bstrURL:URL地址。

返回

方法 Download

开始下载

参数

返回

方法 GetResultFileName

获得下载后的文件名

参数

  • [in] BSTR bstrURL:URL地址。
  • [out,retval] BSTR* bstrResultFileName:结果文件名

返回

属性 DownloadFilePath

获得/设置下载后的文文件路径

参数

类型

  • get: [out, retval] BSTR* pVal:获得下载后的文文件路径
  • put: [in] BSTR newVal:设置下载后的文文件路径

属性 Title

设置窗口标题

参数

类型

  • put: [in] BSTR newVal:设置窗口标题