0

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?

sergej.p
  • 85
  • 1
  • 5

1 Answers1

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
  • 3
    It 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