防止屏幕捕获软件捕获应用程序屏幕 [英] Prevent screen capturing softwares to capture an application screen

查看:181
本文介绍了防止屏幕捕获软件捕获应用程序屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究考试系统,作为系统的安全部分,我不希望任何人都应该通过屏幕录像或通过使用许多免费的桌面共享远程应用程序进行远程操作来泄漏纸张。



首先我搜索了是否可以阻止此类应用程序?但是我不这么认为,因为录制/共享屏幕的方法很多。然后我了解了HDCP,但我想它将仅适用于视频而不适用于HTML(如果我错了,请纠正我)。因此,我想要HDCP或VLC播放器的 Directx视频输出之类的东西,以使内容不会被打印屏幕或其他屏幕捕获技术捕获。



我想D3D9 / DDraw叠加层仅用于视频内容,我可以在HTML内容/基于ac#的Windows应用程序中使用它吗?

解决方案

我已经通过使用



但是,我是对此可以接受任何其他(更好)的答案。


I am working on examination system, as a security part of the system I don't want anyone should leak the paper by screen recording or by giving remote using so many free applications for desktop sharing.

First I searched for can I block such applications? But I don't think so, as there so many ways to record/share a screen. Then I got to know about HDCP but I guess it will only application to videos and not to HTML (correct me if I am wrong). SO I want something like HDCP or VLC player's "directx video output" so that content doesn't get captured by printscreen or other screen capture techniques.

I guess D3D9/DDraw overlays are only for video content can I use this for HTML content/in a c# based windows application?

解决方案

I have achieved this by using SetWindowDisplayAffinity, as per MSDN

The display affinity setting. This setting specifies where the window's contents are can be displayed. Set this value to WDA_MONITOR to display the window's contents only on a monitor. Set this value to WDA_NONE to remove the monitor-only affinity.

So setting WDA_MONITOR to handle of WinForm makes it black when print screen or desktop recording or in desktop sharing application.

Image captured through mobile:

However, I am open for any other (better) answer for this.

这篇关于防止屏幕捕获软件捕获应用程序屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆