使用.NET在Windows中检测屏幕录制 [英] Detecting screen recording in windows using .NET

查看:69
本文介绍了使用.NET在Windows中检测屏幕录制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用C#编写一个应用程序,在其中我可以检测到另一个应用程序是否正在捕获Windows中的屏幕视频.我可以查看进程列表并检测特定进程是否正在运行,但是效率不高,因为可以更改捕获应用程序的进程名称.有人可以告诉我是否有办法做到这一点?谢谢!

I am trying to write an application in C# where I can detect if another application is capturing a video of the screen in Windows. I can look at process list and detect if a particular process is running but it is not efficient as process name of the capturing application can be changed. Can any one please tell me if there is any way to do this ? Thanks !

推荐答案

如果您要做的只是检测同一台计算机上的进程是否正在录制屏幕,您可能可以找到一种方法来处理某些事情.许多屏幕录制软件都使用某些API,您可以使用EasyHook或类似的工具来拦截某些API,但是您会错过其余的以不同方式工作的API.

If all you're trying to do is detect whether a process on the same computer is recording the screen you can probably find a way to do it for some stuff. There are certain APIs that are used by a lot of screen recording software that you can intercept with EasyHook or something similar, but you'll miss the rest of them that work differently.

UltraVNC具有可以安装的镜像视频驱动程序,该驱动程序会向您提供屏幕更新的通知以及对视频帧缓冲区的直接访问,这对于屏幕录制或重播非常有用.您的代码对此有何反应?

UltraVNC for instance has a Mirror Video Driver that you can install that gives you notifications of screen updates as well as direct access to the video framebuffer, which is great for screen recording or recasting. How will your code react to that?

更大的问题是,仅扫描本地计算机不足以保护您的应用程序不被记录.您可以通过混合各种技术(如硬件覆盖和HDCP)来增加输出的难度.

The bigger problem is that simply scanning the local machine is insufficient to protect your application from being recorded. You can make it more difficult by mixing in various techniques like hardware overlay and HDCP for your output.

最大的问题当然是无法阻止某人将相机对准他们的显示器.

The biggest problem of course is that there is no way to stop someone from pointing a camera at their monitor.

最终您将花费大量时间进行开发,最终结果是安全性增加不多……给最终用户带来了更多不便.决心打败它的人只需要对您的应用程序做一些代码补丁,或者将手机摄像头指向正确的方向,这就是再见的安全性.

What you will end up with is a lot of time spent on the development with a net result of not much added security... and a little more inconvenience to your end users. And someone determined to defeat it only needs to do a little code patch to your application or point a cell-phone camera in the right direction and it's bye-bye security.

对我来说似乎很愚蠢.

这篇关于使用.NET在Windows中检测屏幕录制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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