title: Delphi Download Video from the Internet using URLDownloadToFile
body: <p>How can I implement the following Windows function in Delphi?</p>
  
  <pre><code>HRESULT URLDownloadToFile(      
    LPUNKNOWN pCaller,
    LPCTSTR szURL,
    LPCTSTR szFileName,
    DWORD dwReserved,
    LPBINDSTATUSCALLBACK lpfnCB
  );  
  </code></pre>
  
  <p>URLDownloadToFile Function: <a href="http://msdn.microsoft.com/en-us/library/ms775123(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms775123(VS.85).aspx</a></p>
  
  <p>The question that prompted me was asked here. </p>
  
  <p><a href="https://stackoverflow.com/questions/3850934/downloading-flv-from-youtube-using-curlpp-on-top-of-curl-video-not-playing">Downloading flv from youtube using curlpp on top of curl - video not playing</a></p>
  
  <p>Regards, Pieter.</p>