这是组件download.ctl文件里的代码,怎么看不懂,这是在干什么?Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long 这个函数我怎么找不到
Option Explicit
Public ErrInfo As String
Public DownloadDir As String
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Public Function download(Folderurl As String)
On Error Resume Next
Dim returnvalue As Long
Dim strUrl As String, strDes As String
Dim File As String
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim strsql As String
conn.Provider = "msdaipp.dso"
conn.Open Folderurl
strsql = "SELECT ""DAV:href"",""urn:schemas:custom:folder:meetingapprove:subject"" FROM """ & Folderurl & """ where not(""urn:schemas:custom:folder:meetingapprove:subject"" is null) "
Set rs = conn.Execute(strsql)
If Err.Number <> 0 Then
ErrInfo = Err.Description
'MsgBox Err.Description & "下载文件发生错误!", , "错误"
Exit Function
End If
If (rs.EOF And rs.BOF) Then
ErrInfo = "没有需要下载的文件!"
'MsgBox "没有需要下载的文件!", , "提示"
Exit Function
End If