Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
I'm trying to make a security screensaver in C# for a hospitol where it is no option to disable CTRL+ALT+DEL the screensaver and all word perfect it can't beclosed by a user by task manager the only way to close this screensaver is by using a key combination however the main issue i got now is that the screensaver gets closed if someone does CTRL+ALT+DEL and then ESC which cancels the SAS screen but as mentioned also the screensaver...

is there a workaround for this to make the screensaver not closeable by either the user and the SAS/GINA/Winlogon.exe?
Posted
Updated 3-May-11 3:55am
v2

 
Share this answer
 
Comments
anthony 008 3-May-11 16:14pm    
Thanks for the solution,


Although disableing CTRL + ALT + DEL is somthing we have thought about although its not a option the higher ups dont want to disable CTRL + ALT + DEL because it's required for some medical operations.


besides that i have googled allot but i'm out of solutions this is also the reason why i posted this question .
Im going to assume this is windows forms? if so add a timer in the tick event add this code

C#
private void timer1_Tick(object sender, EventArgs e)
{
  if (!this.TopMost)
   {
     this.TopMost=true;
   }
}


this is just a blunt force way to force the form to be on top of all forms even task manager but still does not handle Ctrl Alt Del
 
Share this answer
 
Comments
anthony 008 4-May-11 12:48pm    
thank you, this is a good tip for difirent applicaties i already had this implemented befor :)
well non of the aboven suggesions did realy help, there is neither a workaround for this problem on google after 2 days of searching. How ever the hospitol uses a agent which will handle the screensaver now instead of the windows as temperaly work around thanks for the tips and ideas for the people who tryed to help.
 
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