How to disable Ctrl+alt+del

M

Mark Callaway

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)
 
C

Cerebrus

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.
 
M

Mark Callaway

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ctrl+Del+Alt video 1
Ctrl + Alt + Del stopped working 20
Ctrl+Alt+Del - mapping keys 7
Alt-Ctrl-Del with Vista Business 4
disable ctrl-alt-del 1
Ctrl-Alt-Del missing 6
Ctrl+Alt+Del Screen 2
Disable Ctrl-Alt-Delete 4

Top