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

请问,如何注册自定义协议?类似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\""