Oh yeah, sorry. That function should be declared as this:
VB Code:
  1. Private Declare Function URLDownloadToFile Lib "URLMON.dll"[b] Alias "URLDownloadToFileA"[/b] ( _
  2.     ByVal lpCaller As Long, _
  3.     ByVal szUrl As String, _
  4.     ByVal szFile As String, _
  5.     ByVal dwReserved As Long, _
  6.     ByVal TLPBINDSTATUSCALLBACK As Long _
  7. ) As Long