开发者

Creating a program that stop the user from accessing the system and prevents CTRl Alt DEL

I am trying to create a custom login program for my PC, rather than using the usual Windows 7 login(I'll just remove my password and have my account auto login, my program will run after windows startup), and I need to disallow the CTRL Alt Del key combination, and I want to catch and disable the various methods a user might try to exit the application.

I also need the program to run above all other running program and stop the user from accessing the system and other running application

So, how can I prevent user from accessing the system while my p开发者_JAVA技巧rogrami is running?? I know I can use a process check to kill taskmgr.exe, but not sure about that menu. I also assume I can just prevent my program from exiting when Alt+F4 is pressed, by canceling an event, like OnQuit or what ever it is called.

Thank you to anyone who can help me.


CTRL-ALT-DELETE is, by design in Windows 7, a secure, system-only key combo... so that the user KNOWS they are using a system screen, and not some sort of lock screen lookalike app designed to hijack their password.


To display your window above all others, set the Window.Topmost (WPF) or Form.TomMost (Windows Forms) property to true

I have no idea how to suppress the system screen. I'm afraid Steve is right about it. Not even virtualization software like VMware is not able to do this.


As mentioned elsewhere Ctrl-Alt-Delete is buried deep down in the OS and not ment to be tampered with.

Depending on which effect you want to obtain by hooking up the key press and your rights on the system you could consider revoking access to system shutdown using the windows access control system. I found a blog about it using Windows XP here: http://www.online-tech-tips.com/windows-xp/xp-prevent-shutdown/

While there might be differences on Windows 7, you still have the gpedit.msc management plugin available and there is a policy named Shut down the system that by default is available to administrators, users and backup operators. I would look at the revoking access to users as a means to solve whatever-you-want-to-obtain.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜