Re: Download API , help please by Igor
Igor
Thu Jun 24 17:25:09 CDT 2004
"a.m.a" <amarcaurele@videotron.ca> wrote in message
news:l6sBc.14529$603.483153@weber.videotron.net
> I wrote a small download manager.
> Im using IBindStatusCallback and i want to prevent "caching" the
> files :
>
> STDMETHODIMP CBindStatusCallback::GetBindInfo(DWORD* pgrfBINDF,
> BINDINFO* pbindinfo)
> {
> *pgrfBINDF = BINDF_NOWRITECACHE;
> return S_OK;
> }
>
> But its not working, the data is still cached !!!
> What am i missing here ?
It only works for asynchronous downloads, and in my experience, only in
pull mode. Try adding
BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA
You'll need to design your download manager to support asynchronous
downloads.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken