Re: Preventing WiMP from being launched
- From: Dave Brown <key88sf@xxxxxxxxx>
- Date: Sat, 24 Nov 2007 02:13:35 -0800 (PST)
On Nov 23, 12:21 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
"Dave Brown" <key8...@xxxxxxxxx> wrote in message
news:2a002c75-4adc-4e17-a884-3c9250553aff@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Just to followup -- I have implemented an Asyc Plug Protocol handler
for "http" which is just a passthru right now. Question is - is there
any way to obtain the MIME-Type from within the Start() method?
Of course not. Start is called before a single byte is sent to the
server, let alone getting any back. You need to wait until HTTP response
arrives, hopefully with Content-Type header.
You need to wait until
IInternetProtocolSink::ReportProgress(BINDSTATUS_MIMETYPEAVAILABLE) is
called on you.
--
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
Hi Igor - the way I read the MSDN documentation, IInternetProtocolSink
methods are not going to be called on my class unless I register it as
a MIME filter, not an APP. I have implemented IInternetProtocolSink,
and nothing is being called. It also doesn't do me any good to hold
onto the IInternetProtocolSink pointer passed to Start(), since I have
no way to see calls made to it...
Am I missing something here?
.
- Follow-Ups:
- Re: Preventing WiMP from being launched
- From: Igor Tandetnik
- Re: Preventing WiMP from being launched
- References:
- Preventing WiMP from being launched
- From: Dave Brown
- Re: Preventing WiMP from being launched
- From: Igor Tandetnik
- Re: Preventing WiMP from being launched
- From: Dave Brown
- Re: Preventing WiMP from being launched
- From: Dave Brown
- Re: Preventing WiMP from being launched
- From: Igor Tandetnik
- Preventing WiMP from being launched
- Prev by Date: Re: Preventing WiMP from being launched
- Next by Date: Re: Preventing WiMP from being launched
- Previous by thread: Re: Preventing WiMP from being launched
- Next by thread: Re: Preventing WiMP from being launched
- Index(es):