Detect when users take screenshots of my program

前端 未结 10 1464
猫巷女王i
猫巷女王i 2020-12-09 13:38

I\'m writing a Windows application. How can I tell when a screenshot is being taken of it? I read about how to detect the hotkey being pressed, but I\'m more worried about t

10条回答
  •  不思量自难忘°
    2020-12-09 14:19

    First, comments about using a virtual machine are completely pointless -- it is much easier to detect windows running under a virtualizer than to detect a screenshot being taken.

    A good way to make screenshots difficult would be to rewrite your program to run in full screen mode under some ancestral dos extender.

    A good way to ban 95% of users who ever attempted to take a screenshot is to display a huge flashing banner on startup ("screenshots prohibited! you be banned!"), and detect user pressing PrtScrn during the following 15 seconds.

提交回复
热议问题