Если набрать в браузере outlook:today,то Вы увидите окно знаменитого почтового клиента.
Вопросы:
1) Что такое urn:, и как это можно юзать.
2) Как, набрав my-app:tomorow передать управление моей программе?
Спасибо.
The following example shows which registry values must be added to register a new application (notepad.exe in this example) to handle a new URL protocol (note:).
[HKEY_CLASSES_ROOT]
[note]
(Default) = "URL:Note Protocol"
URL Protocol = ""
[DefaultIcon]
(Default) = "notepad.exe"
[shell]
[open]
[command]
(Default) = "c:\windows\notepad.exe %1"
By adding these settings to the registry, attempts to navigate to URLs such as note:c:\myfile.txt would launch Notepad to edit the file c:\myfile.txt. Of course, all the commands supported under Shell\Open are supported, including DDEEXEC (in other words, "command" is not the only key you can put under the verb).
tyomitch писал(а):Нужно создать Protocol Handler
tyomitch писал(а): http://msdn.microsoft.com/workshop/netw ... erview.asp
ANDLL писал(а):tyomitch писал(а):Нужно создать Protocol Handler
Это какой интерфейс надо Implements?
Creating an Asynchronous Pluggable Protocol Handler
Follow these steps to create an asynchronous pluggable protocol handler:
Implement the IInternetProtocol interface.
Implement the IInternetProtocolRoot interface.
Implement the IClassFactory interface.
Optional. Implement the IInternetProtocolInfo interface. Support for the HTTP protocol is provided by the transaction handler.
If IInternetProtocolInfo is implemented, provide support for PARSE_SECURITY_URL and PARSE_SECURITY_DOMAIN so the URL security zone manager can handle the security properly.
Write the code for your protocol handler.
Provide support for BINDF_NO_UI and BINDF_SILENTOPERATION.
Add a subkey for your protocol handler in the registry under HKEY_CLASSES_ROOT\PROTOCOLS\Handler.
Create a string value, CLSID, under the subkey and set the string to the CLSID of your protocol handler.
After the protocol handler is created and added to the registry, the handler can be used by any application that uses the functionality provided by Urlmon.dll.
ANDLL писал(а):Кстати, твой ранг повысился!
Implements IInternetProtocol
uniform resource nameANDLL писал(а):
- Код: Выделить всё
Implements IInternetProtocol
Ошибка при компиляции - такой интерфейс нельзя имплементировать.
Кстати, что такое URN?
Сейчас этот форум просматривают: AhrefsBot и гости: 8