如何创建自己的 URL 协议?(例如:so://...) [英] How do I create my own URL protocol? (e.g. so://...)

查看:67
本文介绍了如何创建自己的 URL 协议?(例如:so://...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过:

  • http://www...
  • ftp://blah.blah...
  • file://blah.blah...
  • unreal://blah.blah...
  • mailto://blah.blah...

您看到 http 之类的第一部分是什么?

What is that first section where you see http and the like called?

我可以自己注册吗?

推荐答案

带有HTTP://FTP://等的部分称为URI 方案

您可以通过注册表注册自己的.

You can register your own through the registry.

HKEY_CLASSES_ROOT/
  your-protocol-name/
    (Default)    "URL:your-protocol-name Protocol"
    URL Protocol ""
    shell/
      open/
        command/
          (Default) PathToExecutable

来源:https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml,http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

这篇关于如何创建自己的 URL 协议?(例如:so://...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆