首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

请教,怎么注册自定义协议

2012-03-24 
请问,如何注册自定义协议?类似QQ那样:tencent://message/?uinp只要链接到该地址即可响应应用软件.启动聊

请问,如何注册自定义协议?
类似QQ那样:
tencent://message/?uin=p

只要链接到该地址即可响应应用软件.启动聊天窗口.
那么   tencent://   是如何加到系统中的呢?

[解决办法]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Tencent]
@="TencentProtocol"
"URL Protocol"="D:\\Program Files\\Tencent\\QQ\\Timwp.exe"
[HKEY_CLASSES_ROOT\Tencent\shell]

[HKEY_CLASSES_ROOT\Tencent\shell\open]

[HKEY_CLASSES_ROOT\Tencent\shell\open\command]
@="\"D:\\Program Files\\Tencent\\QQ\\Timwp.exe\" \"%1\""

热点排行