Disable the Ctrl-Alt-Delete event through Java program
Asked Answered
G

4

5

I am creating a desktop application using the JDesktopPane. I'm almost complete, but when I press ctrl + alt + del, it leaves my application. How can I prevent that action?

Guesstimate answered 11/4, 2010 at 7:44 Comment(1)
As I'm not certain, I won't offer an official answer, but I don't believe it is possible. On Windows, ctrl-alt-del is a reserved key combination. It would be a security flaw to allow applications the ability to override it.Raynor
H
11

Fact is Alt+Ctrl+Del never actually entering your application. Os traps Alt+Ctrl+Del before it is send to your application. So you can't trap it.

Hypesthesia answered 7/9, 2013 at 11:54 Comment(0)
S
8

Alt+Ctrl+Del cannot be overridden. It is a security feature.

S answered 11/4, 2010 at 8:22 Comment(0)
B
7

You cannot do that. The behavior of Alt+Ctrl+Del is enforced by the operating system, for good reasons: it makes sure that you can always bail-out of a faulty application.

Breadfruit answered 11/4, 2010 at 8:10 Comment(0)
T
5

http://www.codeproject.com/KB/winsdk/AntonioWinLock.aspx

lists several possibilities, from disabling the taskmanager to injecting keyboard hooks. But I doubt there's some built-in java functionality for that.

Tnt answered 11/4, 2010 at 8:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.