UAC 提示时会触发哪些事件?
显示 UAC 提升提示时是否会触发任何 Windows 事件?我查看了 SwitchDesktop,但没有看到任何关于如何接收通知的提及。
我的直接显示应用程序表现不佳,我希望能够在显示提示时暂停图表,在关闭时恢复。
我正在使用 C++ 和 MFC、VS2008,目标是 XP、Vista 和 7。
非常感谢
Are there any windows events triggered when a UAC elevation prompt is shown? I've looked at SwitchDesktop, but can't see any mention of how to receive notifications.
My direct show app is behaving badly, and I'd like to be able to pause the graph when when the prompt is displayed, resuming when dismissed.
I'm using C++ with MFC, VS2008, targetting XP, Vista and 7.
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是在另一个线程(超级用户)中回答的,解决方案名称是:UAC 审核。
来源:https://superuser.com/questions/273236/reason-for-user- account-control-dialog
编辑基本部分:(上面 URL 的摘要)
以下站点包含系统事件日志中每个事件 ID 的简短摘要:
Windows 7 和 Windows Server 2008 R2 中的安全事件描述
http://support.microsoft.com/kb/977519
编辑 2:
并非所有 Windows 版本都包含策略编辑器(如 Windows 7 Home premium)。但是,在 Windows 7 Home Premium 中可以使用 Auditpol.exe 访问本地审核策略编辑器(不是组策略),在 Windows XP SP2 上可以使用 Auditusr.exe 访问本地审核策略编辑器(不是组策略)
有关使用 Auditpol.exe 的详细信息,请参阅此处:
http://technet.microsoft.com/en-us /库/a02cfb9d-732f-4e77-aeba-f18265daa3af
This was answered in another thread here (superuser), The solution name is: UAC Auditing.
Source: https://superuser.com/questions/273236/reason-for-user-account-control-dialog
Edit for essinital part: (Summary of the URL above)
Here is a site containig a short summary for every Event ID in the System Event log:
Description of security events in Windows 7 and in Windows Server 2008 R2
http://support.microsoft.com/kb/977519
Edit 2:
Not all Windows versions has a Policy editor included (like Windows 7 Home premium). However, Local Audit Policy editor (Not Group Policy) is accesible in Windows 7 Home Premium with Auditpol.exe and on Windows XP SP2 with Auditusr.exe
For more information about using Auditpol.exe see here:
http://technet.microsoft.com/en-us/library/a02cfb9d-732f-4e77-aeba-f18265daa3af
当 UAC 切换桌面时,您的图表将收到渲染器引发的设备丢失事件(EC_DEVICE_LOST 或类似的事件)。您可以覆盖此操作的默认处理,但如果不这样做,默认处理将停止、断开并重新连接渲染器(以便它可以重新获取设备),然后查找到先前的位置并重新启动。您还可以使用桥将渲染器放在单独的图形中,这样您的捕获就不会中断。
G
When the UAC switches desktops, your graph will receive a device-lost event raised by the renderer (EC_DEVICE_LOST or something like that). You can override the default handling for this, but if you don't, the default handling will stop, disconnect and reconnect the renderer (so it can reacquire the device) and then seek to the previous position and restart. You could also put the renderer in a separate graph using a bridge, so that your capture is not interrupted.
G
我不确定显示 UAC 提示时是否发送了任何事件。基本上它会截取桌面的屏幕截图,然后切换到另一个显示 UAC 提示窗口的会话。
I'm not sure there are any events sent when UAC prompt displays. Basically it makes a screenshot of the desktop, and switches to another session where UAC prompt window is displayed.