本文介绍了UAC提示高程-它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要执行某些与安全相关的操作时,Windows在安全桌面"上显示UAC提示.显然在某处有一些API可以创建安全的桌面并在其上创建一个窗口,但是我不知道在哪里可以找到所涉及的机制.我想我可以对UAC机制进行逆向工程,但是我在逆向工程方面并没有那么出色(而且我很确定涉及法律方面的后果...)

Windows displays UAC prompts on the "secure desktop" when certain security-related operations need to be performed. There's obviously some API somewhere that creates the secure desktop and creates a window on it, but I have no idea where I would find out about the mechanisms involved. I guess I could reverse engineer the UAC mechanisms, but I'm not that good at that level of reverse engineering (and I'm pretty sure there's some legal ramifications involved...)

无论如何,我知道当前会话中有一个API可以创建新的桌面,但是我能找到的任何文档中都没有提到安全桌面.出于好奇,我想知道整个安全桌面/UAC提示创建的工作原理.

Anyway, I know there's an API to create new desktops on the current session, but there's no mention of secure desktops in any documentation I can find. Out of curiosity, I'd like to know how the whole secure desktop / UAC prompt creation works.

免责声明:这纯粹是理论上的,我不希望在我的任何代码中部署它.

推荐答案

从系统的角度来看,安全桌面似乎只是具有适当ACL的完全正常的桌面.请注意,CreateDesktop允许您为新桌面指定安全描述符.

It seems likely that, from the point of view of the system, the secure desktop is just a perfectly normal desktop with a suitable ACL. Note that CreateDesktop allows you to specify a security descriptor for the new desktop.

据我所知,安全桌面没有任何特殊行为,因此我认为没有理由假定涉及任何其他API(已记录或未记录).

So far as I know, the secure desktop has no special behaviour, so I see no reason to suppose that any additional API (documented or not) is involved.

这篇关于UAC提示高程-它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:41