473,490 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to disable Ctrl+alt+del

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
2 2107
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9013
by: Pradeep M M | last post by:
Hi Folks, Can any of your folks tell me as to how can I capture the keys Ctrl+Alt+Del in C# or Vb.NET. Pradeep
1
2615
by: Pedro Graca | last post by:
Well ... I've been using Windows for a long time before I switched to Linux. I'm very used to type CTRL-ALT-DEL everytime I'm leaving my computer or arriving to it. It's hapenned _twice_ (in the...
3
43918
by: Stefan | last post by:
Hy, i have an app and i must disable this combination: ALT+F4; CTRL+ALT+DEL; CTRL+ESC;ALT+TAB like this: i find something on Internet and i can block ALT+F4 protected override...
4
3540
by: | last post by:
I want to program a application for user login in windows.Now I has some question about disable the system hotkey(c+a+d,alt+tab,win key.etc.) and limit the mouse cursor in winform How can I do it?...
7
6477
by: | last post by:
And how to lock the mouse? ths!
3
15358
by: Kevin Bilbee | last post by:
I need to know the API call to disable the CTRL-ALT-DEL in a C# windows form. We have created a time clock application to run on a tablet PC to replace the windows shell, we are going to hang it...
3
1928
by: ranjithsubra | last post by:
Hi , i am a new member of this group,Learning vc++, 1.If i press Ctrl+Alt+Del, what happen Desktop window will be shoutdown, logof ,etc. 2. I need to Hide the KeyCombination CTRL+ALT+DEL, when...
10
8527
by: thupham | last post by:
Dear all friend, I want disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del, lock all keys on the keyboard. Have you ever do it in C#. Help me. Thanks for all reply.
9
2990
by: Gillard | last post by:
hi all is it possible to block the CTRL+ALT+DEL Key conbinations in a vb.net application?? ans how to ?? please !
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.