问题 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 回答1: I'm not sure there are any events sent when UAC prompt displays. Basically it makes a screenshot of the desktop,