URL protocol handler demo

Source: Internet
Author: User
& Lt; table width = "100%" & gt;
& Lt; table width = "100%" & gt;
URL protocol handler demo
Use Delphi to program the URL protocol handler function in windows.

1. Purpose

implementation is similar to:
1. synacast of PPLIVE: // protocol;
2. thunder downloaded by thunder: // protocol

, etc. As long as the link on IE or web page, the resource manager, or start-running dialog,
enter the URL proltol ://....; you can start the corresponding Program .

2. Implementation technical description

Register a URL protocol handler with windows.
enter the protocol name in the registry, response Process path;

related technical reference:
http://msdn.microsoft.com/library/default.asp? Url =/Workshop/networking/pluggable/Overview/appendix_a.asp

3. usage of this demo;

1. run the demo and click "register do2008: // protocol" to register with windows.
2. after registration, you can run this demo by entering the link in IE or web page, resource manager, or start-running dialog.
enter do2008: // hello, the world, and display the corresponding message.

3. click "unregister do2008: // protocol" to cancel registration.

4. Source Code Description
it is written in Delphi7 and no third-party controls are used, Code can be freely transmitted and used for reference.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.