Suppose we have more than one temp Async pluggable protocols for schema lets say ftp: then which one will be called by urlmon?
Asked
Active
Viewed 263 times
1
-
My guess would be whichever one is in the registry first. – i_am_jorf Jun 07 '09 at 17:25
-
But this is temp protocol , it gets registered by calling RegsiterNamespace API. So I guess registry is not involved here. – anand Jun 07 '09 at 17:28
1 Answers
2
According to the docs when multiple handlers are registered for a namespace then last past the post wins, this also implies that temporary handlers trump those declared in the registry.
Excerpt from IInternetSession::RegisterNameSpace on MSDN:
Because pluggable protocol handlers are not chained, only the last handler to be registered will be active; therefore, it is better to create a new namespace, rather than reuse an existing one.

stephbu
- 5,072
- 26
- 42