一、注册服务
1、说明
参见浏览器客服qq点击后唤起qq聊天窗口。其在注册表中添加如下信息,这个本身也是win自己支持的。其中 C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\Timwp.exe 程序为接收信息程序,.net程序会在main方法 args[]中放入
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Tencent]
@="TencentProtocol"
"URL Protocol"="C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\Timwp.exe"
[HKEY_CLASSES_ROOT\Tencent\DefaultIcon]
@="C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\Timwp.exe,1"
[HKEY_CLASSES_ROOT\Tencent\shell]
[HKEY_CLASSES_ROOT\Tencent\shell\open]
[HKEY_CLASSES_ROOT\Tencent\shell\open\command]
@="\"C:\\Program Files (x86)\\Tencent\\QQ\\Bin\\Timwp.exe\" \"%1\""
telnet的注册信息
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\telnet]
@="URL:Telnet Protocol"
"EditFlags"=dword:00000002
"FriendlyTypeName"="@C:\\WINDOWS\\system32\\iefram