设为首页 加入收藏

TOP

利用Pluggable Protocol实现浏览器打开本地应用程序(二)
2017-10-11 18:26:54 】 浏览:4753
Tags:利用 Pluggable Protocol 实现 浏览器 打开 本地 应用程序
MAX_PATH. The name of the first key under the shell key should be an action verb, such as open. Under this key, a command key or a DDEEXEC key indicate how the handler should be invoked. The values under the command and DDEEXEC keys describe how to launch the application handling the new protocol.

  Finally, the Default string value should contain the display name of the new URI scheme. The following example shows how to register an application, alert.exe in this case, to handle the alert scheme.

  以上就是官网的配置说明,我这里不做多解释。配置的最终的结果如下:

  

  在注册表配置成功以后,首次通过该协议打开应用时,浏览器会有如下提示:

  

  是的,你没有看错,如果你足够细心或者掌握了这个技术以后,首次安装迅雷后,如果网页中有迅雷能够识别的协议文件地址时,点击后也会弹出这个框的。

  在浏览器第一次打开用户自定义协议的URI地址时,均会有上图的提示,这也就意味着你配置成功了(从协议定义到程序的传值通道已近成功建立了)。

 

  按照上述的的流程可以举一反三,开发出适合自己业务的应用程序。编程源于生活也高于生活!

  

  如果你觉得本博文对你有所帮助,请记得点击右下方的"推荐"哦,么么哒...

  转载请注明出处:http://www.cnblogs.com/liushaofeng89/p/5432770.html

 

参考文章:

  1. https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
  2. https://msdn.microsoft.com/en-us/library/aa767916(v=vs.85).aspx
  3. https://msdn.microsoft.com/en-us/library/ee318402(v=vs.85).aspx
  4. https://msdn.microsoft.com/en-us/library/aa767743(v=vs.85).aspx
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇创建不死目录、不死文件 下一篇打开Application Data

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目