远程客户端访问 Windows 10 IoT Core 时的事件?

Event when Remote Client is accessing Windows 10 IoT Core?

我正在尝试为 Windows 10 IoT Core 创建一种锁定功能,以便它可以在本地显示以及 Windows 10 IoT 远程客户端上使用。并且在使用 Remote Client 时,某些功能无法在本地显示器上使用。

为此,我只是在寻找一种方法来检测远程客户端是否处于活动状态或在远程客户端开始和停止时触发的事件,我可以在 UWP 代码中使用它来实现这一点。

谢谢!

您可以尝试监控是否存在远程客户端的连接。 Remote Client的端口好像是8000,可以用netstat命令确认端口。 ControlChannelTrigger enables real time notifications to be received in the background for objects that establish a TCP connection. You may refer to this sample.