Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi everyone i would like to ask any opinion on how can i intervene the command/key CTRL + ALT + DEL... well im creating my cafe monitoring system and i read many forums regarding on how to hook the key ctrl+alt+del.. they say you should create your own customized gina.dll but gina is made out of c++ or something and im not really good in that language so i tried a different approach instead of using a global hook which i know and they say its quite impossible if your not going to create your own gina.dll, i tried on disabling the task manager but i noticed that you can only disable the task manager when you have an administrator right or you are log in as administrator... but what i want is this...
1.) I have a server and a workstation...
2.) the workstation is retrieving data from the database (the database is located in different machine, the server)
3.) i created a thread to check every now and then the status of the workstation (checking is done in workstation and not in server)
4.) run the module in the workstation to lock the keyboard and ctrl+alt+del key when its status in the server is lock...

so i tried it in one of the workstation here and it seems that the workstation cant disable the task manager since it doesnt have any administrator right or was not log in as administrator...

Question:

1.) Is there a way to disable the task manager without logging in as administrator? or disable the task manager as a normal user?
2.) If its not possible then what different approach can i do to disable the task manager or the ctrl+alt + del without creating any gina.dll file?

Hope you can help me with my problem guys thanks in advance...
Posted
Comments
Sergey Alexandrovich Kryukov 22-Mar-11 22:23pm    
OP commented:

With all your restriction... It is NOT possible.

Suggestion: Go to the workstation, log on as an Administrator (you have the right, don't you ) and disable the Task Manager.

Well i appreciate the answer... but my system is displaying a screen saver where it will disable the keyboard and the mouse input... i was able to disable both except for a certain key which is the ALT+CTRL+DEL i cant seem to disable it... it will not be ideal to go to every workstation and disable the task manager since i want the user to be able to access the task manager when i set their workstation status as active... so when its active they will have all the access to every program including the task manager... but when i set the workstation status to inactive or lock then the screen will only display a screensaver and with that it will also lock the keyboard and the mouse input... i hope i explained it a bit clearer... sorry for the bad english....

Oh yea the joy of frying OS because of screwing freshly minted GINA.DLL. If you don't know what you doing, I won't suggest you write GINA dll. I did not more than a decade ago and trust me, while it is not terribly hard, but if you screw up, the machine is locked. you won't be able to login, period.

Besides GINA is only for windows XP and earlier, I think the machines is a bit different for Vista and newer. Again I have not seen in this area for 10+ years.

If you want to take the hike see http://technet.microsoft.com/en-us/library/bb742447.aspx[^]

for vista and beyond http://msdn.microsoft.com/en-us/magazine/cc163489.aspx[^]
 
Share this answer
 
This is really not possible, by apparent reason. This key combination is processed by OS in a special way, cannot be intercepted.

However, there is something else; and probably this is what you really need: the Kiosk Mode.
See this article: Running a Web Site in Kiosk Mode with C#[^].

See also this discussion: c# program ctrl-alt-del screen windows 7[^].

—SA
 
Share this answer
 
Comments
Madzmar25 22-Mar-11 23:19pm    
I checked your link on Running a Web Site in Kiosk Mode with C#[^]. and the idea was similar to mine but still i can still use the ctrl + alt + del....

1.) is there a way to close the task manager once the user triggered the ctrl + alt + del key?
2.) how will i find out that the user has triggered the ctrl + alt + del key...

i was thinking of running my method when the user triggered the ctrl+ alt + del key... that method will close the task manager when it finds out that its activated or is running... in short i want that method to be called once the user triggered the alt+ ctrl + del key...
Sergey Alexandrovich Kryukov 23-Mar-11 0:31am    
I'm sure you cannot intercept it. I did not try kiosk mode, it needs some time.
--SA
With all your restriction... It is NOT possible.

Suggestion: Go to the workstation, log on as an Administrator (you have the right, don't you :-)) and disable the Task Manager.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900