Re: URLDownloadToFile
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 6 Sep 2005 00:22:09 -0400
"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
.
- References:
- URLDownloadToFile
- From: nly
- Re: URLDownloadToFile
- From: Igor Tandetnik
- Re: URLDownloadToFile
- From: nly
- URLDownloadToFile
- Prev by Date: RE: Server question (schedule work).
- Next by Date: Re: Binary Operations
- Previous by thread: Re: URLDownloadToFile
- Next by thread: Re: MsgWaitForMultipleObjects
- Index(es):
Relevant Pages
|