如何在应用程序 运行 作为服务的远程计算机上提示消息框?

How to prompt message box in remote computer where application is running as service?

我在主机中有一个 C++ MFC 应用程序 运行,它通过代理服务从远程计算机的服务器安装更新。该服务负责更新前在远程机器上的授权。现在,我需要提示远程计算机中当前活动的用户进行确认。服务上下文中的 AfxMessagebox 或 MessageBox 不会在远程计算机中显示任何 window。有办法实现吗?

看看WTSSendMessage():

Displays a message box on the client desktop of a specified Remote Desktop Services session.