Search code examples
windowseventsdirectshowuac

Which events are triggered on a UAC prompt?


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


Solution

  • 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.