How can I disable Ctrl-Alt-Del in windows 7 programmatically?

谁说我不能喝 提交于 2019-12-13 09:48:00

问题


How to disable Ctrl-Alt-Del in Windows 7 when the application loads? I'm looking for an example that disables Ctrl-Alt-Del when the app starts, and enables the combination again once it finishes.

I found an example that disables the combination on Windows XP, however, it doesn't seem to work on Windows 7. Why? Is it not allowed on Windows 7 to disable Ctrl-Alt-Del?

Also, I'd like to know how to run an application as admin on Windows 7?


回答1:


In my opinion this can be done only with global hook. But global hook is not supported by .NET, take a look at this answer. So you can't do this with VB.NET but can with C++.

EDIT: you can do this with VB.NET or any other .NET language, see comments for pointers.




回答2:


I think (and hope actually) windows reserved ctrl alt del for the operating system, so i don't think you can circumvent it.

About the admin thing: How do I force my .NET application to run as administrator?




回答3:


In order to run an Application as Admin - right click and select Run as administrator.

To change the UAC level that your VB application runs at you need to edit the app.manifest file.



来源:https://stackoverflow.com/questions/6408443/how-can-i-disable-ctrl-alt-del-in-windows-7-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!