Is there a WinAPI message when I run the Windows UAC prompt?

When the UAC prompt is launched (and not according to my application), it breaks certain things (I believe it is a Direct3D pen), which causes the screen to show the last frame that is inverse instead of a moving image.

I did not write code that displays a three-dimensional image (this is a plugin), but after the UAC prompt, if I resized the window, the image will return.

Is there a way to detect that the UAC prompt is closing so that I can invoke code that will update the display to compensate?

+4
source share
1 answer

UAC, (. SwitchDesktop). UAC, , , , - .

SetWinEventHook, EVENT_SYSTEM_DESKTOPSWITCH , , . , , , , .

, . , , , , .

, Direct3D , (, Direct3D 9), , . , , (EC_DEVICE_LOST), , .

Direct3D, , . UAC - , ; - . Winlogon. Direct3D, WDDM (, Direct3D 9Ex Direct3D 10 ) , .

+6

Source: https://habr.com/ru/post/1687785/


All Articles