隐藏Windows错误对话框 [英] Hiding Windows Error Dialog box
问题描述
嗨
我正在开发一个应用程序控制模块,即限制某些应用程序执行。
为此,我注册了一个进程创建回调常规。在回调例程中,我获取进程ID,我决定是否允许进程,如果不允许进程,我终止进程。
一切正常,但问题是当我阻止从创建过程开始,用户获得一个对话框,说明
"Windows无法访问指定的设备,路径或文件。您可能没有相应的权限来访问该项目"
我不希望显示此对话框。
谢谢和问候
Utsav
Hi
I am developing an application control module i.e. restricting some applications from executing.
For this I registered a process create callback routine. In the callback routine I get the process ID using which I decide whether to allow the process or not and I terminate the process if it should not be allowed.
Everything works fine but the problem is when I prevent the process from being created the user gets a dialog box saying
"Windows cannot access the specified device, path or file. You may not have appropriate permissions to access the item"
I don't want this dialog box to be displayed.
Thanks and Regards
Utsav
推荐答案
虽然可以使用shell挂钩隐藏系统错误对话框,但这不是推荐的方法。
Although it is possible to hide system error dialogs by using a shell hook, it is not a recommended method.
找到原因并予以纠正。
这篇关于隐藏Windows错误对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!