By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,485 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

How to disable Ctrl+alt+del

P: n/a
Hello

I'm trying to make a little windows service which blocks access to some
other program, in order to prevent my childrens to play with some of my
games.

It works perfectly, but the weakest point, is that they can kill my
service by using the task manager.

That's why i would like to disable ctrl+alt+del.

If it is not possible, i would like to write a message in a file when
they kill my service, or restarting it immediately.
The problem is that killing my service does not raise any event.

Can someone help me?

(sorry for my poor english)

Mar 25 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Mark,

I don't think that overriding Ctrl+Alt+Del is possible in any Windows
OS. You will have to likely search for a workaround...

One idea that comes to mind :

1. Give your children a separate Logon account that does not have
Administrator privileges.
2. Logon with your Admin account, and open the Services snap in, open
your Service properties, go to the Logon tab, choose "Logon as :" and
provide your Admin account name and password.

This way, your children won't be able to "kill" your Windows service.
They will get the Access denied message.

While writing this post, another idea occurred !! :-

1. Use a boolean variable that tracks legal and illegal exiting of the
process. For instance, "IsLegalShutdown"
2. Set it to true in the OnStop method of the service.
3. Handle the Process.Exited event with an eventhandler, which checks
if the "IsLegalShutdown" variable is True. If not, it restarts the
process, and writes to the Event Log.

I guess if you combine both methods I have mentioned, it would make the
Service "naughty-children-proof " !!

Hope this helps,

Regards,

Cerebrus.

Mar 26 '06 #2

P: n/a
"Cerebrus" <zo*****@sify.com> wrote in news:1143331950.913340.212050
@z34g2000cwc.googlegroups.com:
Hi Mark,

I don't think that overriding Ctrl+Alt+Del is possible in any Windows
OS. You will have to likely search for a workaround...
I think this is possible, using the right windows api, but i can't find it.
I have found solutions to block the ctrl alt del on windows 98, but it
doesn't work for XP.
I guess if you combine both methods I have mentioned, it would make
the
Service "naughty-children-proof " !!


Thanks a lot for your help, i think i'll do what you have mentionned.
Mar 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.