Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 18 Aug 2008 13:32:18 +0200,    group: microsoft.public.win32.programmer.tapi        back       


Custom URL protocol handler not executing!?   
Hi

I've developed a custom URL protocol handler for a phone PBX. This is a MFC 
VB app that is executed with command line options. For example "CallTo.exe 
%1" where "%1" is the target phone number I'd like to call to. If I execute 
the .exe from command line the PBX dial out / it works.

Then i registered all the required protocolls as below:

[RegisterURLProtocolHandler.reg]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\callto]
@="URL:Callto Protocol"
"EditFlags"=hex:02,00,00,00
"URL Protocol"=""

[HKEY_CLASSES_ROOT\callto\shell]
@="open"

[HKEY_CLASSES_ROOT\callto\shell\open]
"EditFlags"=hex:02,00,00,00

[HKEY_CLASSES_ROOT\callto\shell\open\command]
@="\"C:\\Program Files\\My Company\\CallTo.exe\" %1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto]
@="URL:Phone Protocol"
"EditFlags"=hex:02,00,00,00
"URL Protocol"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell]
@="open"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell\open]
"EditFlags"=hex:02,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell\open\command]
@="\"C:\\Program Files\\My Company\\CallTo.exe\" %1"



Now when i try to click a link (callto:0049123456789) in IE or Firefox 
nothing will happen!? In the very beginnings I've got "Access denied" error 
messages. Now this is gone... but the exe seems not executed.

Do you have a idea what is required to get custom url protocol handlers in 
browsers working?


Regards
Marc
date: Mon, 18 Aug 2008 13:32:18 +0200   author:   Marc Bauer

Re: Custom URL protocol handler not executing!?   
Marc,

I've already done this and for me it also works from within IE.
I've only tested with a html page that resided in the local file system, 
though.
This is my reg script:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ac2k]
@="URL:AccountCRM Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ac2k\DefaultIcon]
@="F:\\Projects\\urlMon\\ac2kURL.exe"

[HKEY_CLASSES_ROOT\ac2k\shell]

[HKEY_CLASSES_ROOT\ac2k\shell\open]

[HKEY_CLASSES_ROOT\ac2k\shell\open\command]
@="\"F:\\Projects\\urlMon\\ac2kURL.exe\" %1"



Best regards,

Matthias Moetje
-------------------------------------
TAPI WIKI: http://www.tapi.info
------------------------------------- 
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
------------------------------------- 
e-mail: moetje at terasens dot com
www:   www.terasens.com
------------------------------------- 




"Marc Bauer"  wrote in message 
news:O8mEUYSAJHA.5048@TK2MSFTNGP05.phx.gbl...
> Hi
>
> I've developed a custom URL protocol handler for a phone PBX. This is a 
> MFC VB app that is executed with command line options. For example 
> "CallTo.exe %1" where "%1" is the target phone number I'd like to call to. 
> If I execute the .exe from command line the PBX dial out / it works.
>
> Then i registered all the required protocolls as below:
>
> [RegisterURLProtocolHandler.reg]
> Windows Registry Editor Version 5.00
>
> [HKEY_CLASSES_ROOT\callto]
> @="URL:Callto Protocol"
> "EditFlags"=hex:02,00,00,00
> "URL Protocol"=""
>
> [HKEY_CLASSES_ROOT\callto\shell]
> @="open"
>
> [HKEY_CLASSES_ROOT\callto\shell\open]
> "EditFlags"=hex:02,00,00,00
>
> [HKEY_CLASSES_ROOT\callto\shell\open\command]
> @="\"C:\\Program Files\\My Company\\CallTo.exe\" %1"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto]
> @="URL:Phone Protocol"
> "EditFlags"=hex:02,00,00,00
> "URL Protocol"=""
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell]
> @="open"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell\open]
> "EditFlags"=hex:02,00,00,00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\callto\shell\open\command]
> @="\"C:\\Program Files\\My Company\\CallTo.exe\" %1"
>
>
>
> Now when i try to click a link (callto:0049123456789) in IE or Firefox 
> nothing will happen!? In the very beginnings I've got "Access denied" 
> error messages. Now this is gone... but the exe seems not executed.
>
> Do you have a idea what is required to get custom url protocol handlers in 
> browsers working?
>
>
> Regards
> Marc
>
>
>
>
date: Tue, 19 Aug 2008 16:55:56 +0200   author:   Matthias Moetje [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us