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); };
方法 AddURL添加一个需要下载的URL
参数
返回无
方法 Download开始下载
参数无
返回无
方法 GetResultFileName获得下载后的文件名
参数
返回无 属性 DownloadFilePath获得/设置下载后的文文件路径
参数无
类型
属性 Title设置窗口标题
参数无
类型
|
|||||
|