Re: URLDownloadToFile

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"nly" <nlyee2001@xxxxxxxxx> wrote in message
news:%2323C$cnsFHA.1204@xxxxxxxxxxxxxxxxxxxx
> How does URLOpenPullStream() "control the amount of Internet access
> for the download"?

The download is paused until you empty out the current contents of the
stream. You can control the speed of the download by choosing to either
read agressively from the stream, or stop reading for a while.

> Where can the amount of bytes for downloading
> specified?

Normally, it comes as ulProgressMax parameter to
IBindStatusCallback::OnProgress. Note that sometimes it is impossible
for the client to know this data in advance before the download is
complete. This depends on how the server chooses to format the request,
and is not controllable from the client. In this case, ulProgressMax is
0. ulProgress is always the number of bytes downloaded so far.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: 2003 v. 2005 studio - need some help, please.
    ... To reiterate what the other posters wrote - just download the free version of 2005. ... DataBinding is practically perfected in VS2005 with the BindingManager control. ... let's not forget the fantastic new DataGridView. ... get now or wait or yadda yadda yadda. ...
    (microsoft.public.dotnet.languages.vb)
  • Is this possible in VB.Net?
    ... Controlling Download and Execution ... The WebBrowser Control gives you control over what it downloads, displays, ... if these flags are set. ...
    (microsoft.public.dotnet.languages.vb)
  • Is this possible in VB.Net?
    ... Controlling Download and Execution ... The WebBrowser Control gives you control over what it downloads, displays, ... if these flags are set. ...
    (microsoft.public.dotnet.general)
  • Re: setting printer margins
    ... it is not a dead link. ... You don't have to download anything. ... The looping back after the control is installed is normal. ...
    (microsoft.public.windowsxp.newusers)
  • Re: web page communicating with an applet
    ... set group of browsers, and have control over ... browsers it is supported on, ... Had you considered breaking up the app. ... Also - webstart has a 'lazy download' ...
    (comp.lang.java.programmer)