Can I open a Windows 8 application with a URL?

前端 未结 2 2048
既然无缘
既然无缘 2021-02-04 19:43

I am creating an app with a shared session capability. For example a private app-to-app chat session...

I would start the app and create a \"chat room\" then \"share\"

2条回答
  •  长情又很酷
    2021-02-04 19:50

    You can have your application install a protocol handler.

    http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb266526(v=vs.85).aspx

    Since your app must be installed on both computers, both would have the protocol handler installed.

    A protocol handler allows you to define a new protocol name, similar to http: or ftp:, and have your application handle requests for that protocol. I once wrote one for Enterprise Architect that allowed users to share links to diagrams in projects using the format ea://MyProjectName?diagram=SomeDiagram.

    You can check out that protocol handler here:

    http://sourceforge.net/projects/eaprotocol/

提交回复
热议问题