问题描述
我发布了这个问题 并在尝试诊断正在发生的事情时对操作系统中发生的神奇 UAC 感到好奇.(特别是因为它在两个平台上似乎不同.
I posted this question and in trying to diagnose what is going on have become curious about the magic UAC that happens in the OS. (especially since it seems different on the two platforms.
有人可以证实或反驳吗?
Can anyone confirm or refute this?
我们的非托管 C++ 程序导致您要允许以下程序对此计算机进行更改吗?"在程序启动时弹出 - 甚至在它到达我们的 winmain 之前.
Our unmanaged c++ program causes the "Do you want to allow the following program to make changes to this computer?" to pop up at program start - even before it gets to our winmain.
在我们的应用代码运行之前,PE 加载器/启动器/任何东西似乎都完成了某种测试,以自行决定是否应该要求提升.
It appears that there is some kind of test done by the PE loader/launcher/whatever before our app code runs that decides for itself if it should ask for elevation.
为清楚起见
Win7 和 Vista 上的 UAC 提升逻辑是否不同?
Is UAC elevation logic different on Win7 and Vista?
推荐答案
Larry Osterman 在另一个答案的评论中提供了答案.
Larry Osterman in the comment for another answer provides the answer.
存在差异,但它们是极轻微(主要与自动提升逻辑,可防止提示数).一位用户可见不同之处在于应用程序已被标记为需要Windows XP appcompat 层现在将需要海拔.– 拉里·奥斯特曼 2几天前
这篇关于Win7 上的 UAC 与 Vista 不同吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!