问题
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