如何在c#中编写代码以禁用桌面图标? [英] How do I write a code in c # to disable desktop icons?
本文介绍了如何在c#中编写代码以禁用桌面图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何代码可以点击按钮冻结桌面(所有桌面图标和打开的窗口)
任何dll或js代码或者c sharp ...有什么办法可以做通过代码..
冻结使得桌面上没有图标可点击,如果打开任何窗口,那么这些窗口也会被禁用,弹出窗口是显示自定义消息和确定按钮。
点击aspx页面上的按钮需要此功能
谢谢
Is there any code to freeze the desktop ( all desktop icons and the open windows) on click of a button
any dll or js code or c sharp...is there any way to do this through code..
freeze such that no icons are click-able on the desktop and if any windows are opened then those windows also get disabled and a pop up is displayed with a customized message and an OK button.
this function is needed on the click of a button which is on a aspx page
thanks
推荐答案
否。
您不能影响浏览器以外的项目 - 安全拒绝允许这样做有充分理由。
此外,是什么让你觉得浏览器后面有一个Windows桌面?它可能是iOS,Android,Linux ......你无法分辨(也是出于安全考虑)。
想一想:如果你能做到,顽皮的人也是如此 - 然后你不会得到一个弹出你赢了一辆车!你得到一个给我们钱,或你的电脑保持冷冻。它和你使用的安全漏洞将尽可能快地密封。
No.
You can't affect items outside the browser - security refuses to allow that for good reasons.
Besides, what makes you think there is a Windows desktop behind the browser? It could be iOS, Android, Linux, ... you can't tell (also for security reasons).
Think about it: if you could do it, so could The Naughty People - and then you wouldn't get a pop up "You won a car!" you'd get a "Give us the money, or your computer stays frozen". And the security hole it - and you - used would be sealed as fast as physically possible.
这篇关于如何在c#中编写代码以禁用桌面图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文