[UWP] APP如何关闭另一个进程的窗口 [英] [UWP] APP how to close a window of another process

查看:269
本文介绍了[UWP] APP如何关闭另一个进程的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的UWP APP如何关闭窗口?我使用了FindWindow和SendMessage,但错误信息是 


" unresolved external symbol",


我想知道如何在桌面应用程序中调用API。

解决方案

Hello Andy_2012,


UWP应用程序在Sandbox中执行,因此减少了对Windows API的访问。例如,您不能使用FindWindow API调用。

以下是可用的完整列表API 


My UWP APP how to close a window? I Used FindWindow and SendMessage, but  the error message are 

"unresolved external symbol",

I want to know how to invoke API like in desktop app.

解决方案

Hello Andy_2012,

The UWP apps are executed in Sandbox and therefore have reduced access to Windows API. For example you cannot use FindWindow API call. Here is the full list of available API 


这篇关于[UWP] APP如何关闭另一个进程的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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