Home > Software engineering >  Screen capture via WinAPI (security)
Screen capture via WinAPI (security)

Time:04-02

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?

CodePudding user response:

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.

  • Related