When implementing an asyncrhonous plauggable protocol handler, is it possible to "redirect" the implementation to another protocol?
Instantiating the protocol handler for another protocol (such as file: or res:) looks a bit scary and not intended.
调用IInternetProtocolSink::ReportResult
,将第一个参数传递给INET_E_REDIRECT_FAILED
,最后一个传递所需的URL(第二个参数无关紧要; 302会是一个很好的选择)。
I used IInternetProtocolSink::ReportProgress(BINDSTATUS_REDIRECTING, pszRedirURL)
from IInternetProtocolRoot::Start
, and then simply redirected everything to pszRedirURL
protocol's IInternetProtocol
. As I mentioned in the comments, that worked for IE6. A lot of IE internals has changed since then.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.