Is it possible to determine that now my screen (or window of my C++ program) is being captured by any of the running programs on the PC?
Asked
Active
Viewed 232 times
1 Answers
3
It seems there is no way to detect a screen capture until now But you can use SetWindowDisplayAffinity
to protect the window content from being captured or copied only when the Desktop Window Manager(DWM) is composing the desktop.

YangXiaoPo-MSFT
- 1,589
- 1
- 4
- 22
-
3It should be noted that in the interests of security, any _malicious_ tool such as RAT software can typically bypass or hijack and mimic the graphics driver and/or hook the OS kernel. If it does this properly, you will be unable to detect that anything is watching and even the OS will be oblivious to it. – paddy Mar 30 '22 at 07:34