sergej.p
sergej.p

Reputation: 115

Screen capture via WinAPI (security)

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?

Upvotes: 0

Views: 446

Answers (1)

YangXiaoPo-MSFT
YangXiaoPo-MSFT

Reputation: 2130

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.

Upvotes: 3

Related Questions