UWP 和非 UWP 应用程序之间的通信 [英] Communication between UWP and Non UWP app

查看:26
本文介绍了UWP 和非 UWP 应用程序之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 uwp 和非 uwp 应用程序之间进行通信.我的非 uwp 是提供服务的后台任务.我想在 uwp 应用程序中调用该非 uwp 服务.

Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app.

如何拨打电话?AppServiceConnection 类在非 uwp 应用中可用吗?

How to make that call? Is AppServiceConnection class available in non-uwp app?

推荐答案

是的,非 UWP 应用可以使用 AppServices 与 UWP 应用进行通信.

Yes, non-UWP apps can use AppServices to communicate with UWP apps.

这里有一个示例:https://github.com/Microsoft/DesktopBridgeToUWP-Samples/blob/master/Samples/AppServiceBridgeSample_C%2B%2B/cs/Win32Process_CPP/Win32Process_CPP.cpp

这篇关于UWP 和非 UWP 应用程序之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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