If your computer is equipped with QQ, in the IE Address bar input: "tencent://message/?menu=yes&exe=&uin=13231462" and then [Enter], immediately with my QQ to establish a temporary session, the following figure:
Skype also has a similar function. How did it happen? Look at the MSDN section for a quote:
The Iurlsearchhook interface is used by the browser to translate URL of the unknown. When attempting to browse to a URL of this does not contain a protocol, the browser'll-a-attempt to determine t He correct protocol to the address. If not successful, the browser'll create URL Search Hook objects and call all object ' s Translate method until T The translated or all of the hooks have been queried.
The Iurlsearchhook interface is used by browsers to convert an unknown URL protocol address. When the browser attempts to open the URL of an unknown protocol, the browser first attempts to get the current protocol from this address, and if unsuccessful, the browser creates a URL Search hook object registered in the system and invokes the translate method of each object, Until the address is converted or all URL Search hooks have been tried.
That is, we can register a protocol that does not currently exist (like HTTP), and when the browser encounters a new protocol, it automatically invokes the translate method to translate our protocol and even activate our own program.