禁用mDI父级中的打印屏幕 [英] Disable print screen in mDI parent

查看:77
本文介绍了禁用mDI父级中的打印屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在mDI父级或mDI子级中禁用打印屏幕

How i can disable print screen in mDI parent or mDI child

推荐答案

嗨穆罕默德,



首先,我会质疑这个要求 - 它完全没有意义,因为人们的眼睛,卡马拉(手机?)或者黑客(来自显卡的无线电信号) ..)。因此,如果有人认为这会增强你的应用程序的安全性,他就是......



但如果你认为这是一个好主意,你可以:



*使用Keyboard-hook禁用打印屏幕按钮(和Alt + Print)。

[如果你的程序通过全局挂钩对我的系统执行此操作,我会在眨眼之间卸载你的应用程序]



*截取图像复制到剪贴板的默认行为 - 只需监视剪贴板并在检测到图像时覆盖。如果程序用于捕获直接写入文件/流的屏幕,则无济于事。



按系统策略禁用PrintScreen - 但这会影响所有程序在该系统上,你不能用你的程序设置所需的注册表项 - 之后你必须重新启动系统。



所以我建议你成为优秀的程序员,在目标系统和环境中实现所需的安全性。任何你能想到的黑客都可以被规避 - 并且停止新手只需从键盘上取下打印键;-)



只是我的2c



亲切问候Johannes
Hi Mohammad,

First I would question this requirement - It doesn't make sense at all, cause what is on a screen can be seen - by human eyes, a camara (phone?), or by hacking (radio signals from graphics card and what not..). So if someone thinks this will "enhance" security of your app he is...

But if you think this is a good idea anyway you could:

* Disable the print Screen button (and Alt+ Print) with a Keyboard-hook.
[If your program does this to my system with a global hook I'd uninstall your app in the blink of an eye]

* Intercept the default behaviour that the image is copied to the clipboard - just monitor the Clipboard and overwrite if you detect the image. Won't help if a program is used to capture the screen that writes directly to a file/stream.

Disable PrintScreen by System policy - but this will effect all programms on that system, and you can't set the needed registry key with your program - you would have to restart the system after that.

So I'd recommend to be a "good programmer", implement needed security on the target system and in the environment. Any hack you can come up with can be circumvented - and to stop the noobs just remove the "print" key from the keyboard ;-)

Just my 2c

Kind regards Johannes


简单。你没有,原因有两个。



1)你不能阻止所有屏幕捕获软件的方法捕获一个窗口。



2)这完全是浪费时间。什么阻止用户拔出手机并拍摄屏幕照片?
Simple. You don't, for two reasons.

1) You can't prevent a single Window from being captured by all methods of screen capture software.

2) It's a complete waste of time. What's stopping a user from pulling out their cell phone and taking a picture of the screen?


这篇关于禁用mDI父级中的打印屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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