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