gpt4 book ai didi

windows - UAC 提示符会触发哪些事件?

转载 作者:可可西里 更新时间:2023-11-01 11:21:32 27 4
gpt4 key购买 nike

显示 UAC 提升提示时是否触发了任何窗口事件?我看过 SwitchDesktop,但看不到任何关于如何接收通知的提及。

我的 direct show 应用程序表现不佳,我希望能够在显示提示时暂停图表,在关闭时恢复。

我将 C++ 与 MFC、VS2008 一起使用,目标是 XP、Vista 和 7。

非常感谢

最佳答案

这已在此处的另一个线程( super 用户)中得到解答,解决方案名称为:UAC 审计。

来源:https://superuser.com/questions/273236/reason-for-user-account-control-dialog

基本部分的编辑:(上面 URL 的摘要)

Uac Auditing is done by changing windows policy (Local\Group). The policy in interest is found at: Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Audit Policy

Audit Privilege Use will give you information about elevated usage using the UAC consent.exe dialog box in the System Event log. The Event IDs created by this: 4648 and 4624.

Audit Process Tracking will give you information about processes and their creation/termination. Event Id created by this: 4688.

Also, look at event id 4696 to see when a new token (user-logon handle) was assigned to process. Using all these events, you can get a clear picture of the timeline for every process that requested an elevated rights with UAC dialog.

这是一个包含系统事件日志中每个事件 ID 的简短摘要的站点:

Windows 7 和 Windows Server 2008 R2 中安全事件的描述 http://support.microsoft.com/kb/977519

编辑 2:并非所有 Windows 版本都包含策略编辑器(如 Windows 7 家庭高级版)。但是,本地审核策略编辑器(不是组策略)在 Windows 7 Home Premium 中可以通过 Auditpol.exe 访问,在 Windows XP SP2 中可以通过 Auditusr.exe 访问

有关使用 Auditpol.exe 的更多信息,请参见此处: http://technet.microsoft.com/en-us/library/a02cfb9d-732f-4e77-aeba-f18265daa3af

关于windows - UAC 提示符会触发哪些事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8134195/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com