本文介绍了在Windows 10上的平板电脑模式下,SetWindowPOS TOPMOST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有窗口(图标)的应用程序,浮动在桌面上。

I have an app with a window (icon) that floats about the desktop.

在标准桌面模式下,我可以使用api将窗口设置为始终在顶部SetWindowPos。

In standard desktop mode I can set the window to be always on top using the api SetWindowPos.

但是在平板电脑模式下我似乎需要UIAccess = true才能使用。

However in Tablet mode it seems that I require UIAccess = true for this to work.

有没有办法让窗口始终即使在平板电脑模式下也没有诉诸UIAccess?

Is there a way to make the window always on top even in Tablet Mode without resorting to UIAccess?

谢谢,

Michael

Michael Tissington

Michael Tissington

推荐答案

感谢您在此发帖。

>>但是在平板电脑模式下,似乎我需要UIAccess = true才能生效。

有没有办法让窗口在平板电脑模式下始终保持最佳状态,而无需借助UIAccess?

您是否尝试过管理员调用此流程?

Have you tried to call this process by Administrator?

UIAccess完整性允许应用程序绕过用户界面权限当应用程序从标准用户提升到管理员的权限时,会出现通知(UIPI)限制。启用此设置后,在其清单中将UIAccess
标志设置为true的应用程序可以与运行在更高权限级别的应用程序(如登录提示和权限提升提示)交换信息。

UIAccess integrity allows an application to bypass User Interface Privilege Isolation (UIPI) restrictions when an application is elevated in privilege from a standard user to an administrator. When this setting is enabled, an application that has the UIAccess flag set to true in its manifest can interchange information with applications that are running at a higher privilege level, such as logon prompts and privilege elevation prompts.

有关详细信息,请参阅以下文档。

For more information, please refer to this document below.

https://开头的文档.microsoft.com / EN-US /窗/设备的安全性/安全策略的设置/用户帐户控制只-提升-uiaccess的应用程序 - 即,被安装,在安全,位置

希望这可以帮助你。

最好的问候,

Baron Bi

Baron Bi


这篇关于在Windows 10上的平板电脑模式下,SetWindowPOS TOPMOST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 23:06