两个winRT应用程序(metro风格应用程序)之间的进程间通信 [英] Inter-Process communication between two winRT apps(metro style apps)

查看:152
本文介绍了两个winRT应用程序(metro风格应用程序)之间的进程间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我的要求是在metro风格的前台应用程序和后台进程之间传递信息,后者也是winRT应用程序,反之亦然。例如,如果事件发生在前台应用程序中,我想将该信息发送到后台进程并从中获取响应。请帮助实现此通信。如果可以请提供一些代码片段,告诉如何在c ++中实现此目的。



提前致谢。


My requirement is to communicate information between metro style foreground app and background process which is also winRT app and vice versa. For example if an event occurs in foreground app i want to send that information to the background process and get response from it.Please help in achieving this communication.If can please provide some code sniplets telling how to achieve this in c++.

Thanks in advance.

推荐答案

Windows Store应用程序不允许进程间通信。

商店应用程序旨在隔离。



唯一的另一种方法是使用明确定义的合同,如搜索,分享等。

在此处阅读合同 - 应用合同和扩展 [ ^ ]
Inter process communication is not allowed for Windows Store apps.
Store apps are designed to be isolated.

The only other way is by using the explicitly defined contracts like Search, Share etc.
Read about the contracts here - App contracts and extensions[^]


这篇关于两个winRT应用程序(metro风格应用程序)之间的进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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