blocking ctrl + alt + delete

This is a discussion on blocking ctrl + alt + delete within the Windows Programming forums, part of the Platform Specific Boards category; Originally posted by Stoned_Coder Ther is a way. In fact I can think of 2 ways to do this on ...

  1. #16
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by Stoned_Coder
    Ther is a way. In fact I can think of 2 ways to do this on an NT box. One hard. One very hard. Write a keyboard filter driver or replace the GINA DLL with one of your own. There is lots of information on this at msdn if you look for it. You could make a bypass DLL rather than a replacement but its still a lot of work for little reward.
    I didnt say there wasnt a way - I said there wasnt a single way that worked for all OS's.....But then I guess a filter driver would do ok if you created using WDM.......still as you said - a bit of a beast to code unless you are used to that sort of stuff.

  2. #17
    Bug
    Guest

    it works!

    I tryed this :

    HWND hwnd = FindWindow("Shell_traywnd", NULL);
    EnableWindow(hwnd, FALSE);

    compiled it, and it works great, in alot of OS's like : XP, 98, 2k
    mabye will work in all ( didnt have time to try it! )

    why u all didnt give me a comment when I post this code, I've asked u, and nobody answered me, whatever! :\

  3. #18
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786

    Re: it works!

    Originally posted by Bug
    I tryed this :

    HWND hwnd = FindWindow("Shell_traywnd", NULL);
    EnableWindow(hwnd, FALSE);

    compiled it, and it works great, in alot of OS's like : XP, 98, 2k
    mabye will work in all ( didnt have time to try it! )

    why u all didnt give me a comment when I post this code, I've asked u, and nobody answered me, whatever! :\
    Well I'm on XP and all it seemed to do was disable my taskbar - ctr-alt-del still worked as normal, but I couldnt use my start menu....

  4. #19
    Registered User Machewy's Avatar
    Join Date
    Apr 2003
    Posts
    42

    Angry There has to be a way!!!!!!!!!

    I am determined to find a way. None of you guys seem to know. And I know that most of you guys are the C++ technobrains of the world! There has to be a way to disable ctrl + alt + del on all windows OSes!

    I only know how to with a delphi scripted.

    Could someone who knows PLEASE ANSWER????

    Best Regards,
    Machewy
    "All things come to an end"

  5. #20
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    You have already been told the only way that would work for all windows oses is to write a keyboard filter driver. This is something that could probably be tracked down on the net. I would be surprised if this hasnt already been done but dont expect it for free.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  6. #21
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Christ there is no need to attempt to be insulting here. The simple fact is that each windows operation system is a different operating system. Therefore, they have slightly different mechanisms that make them tic. You are asking for a bandage that can fix any injury. You are going to have to do some work (too much for something as annoying as this) to accomplish that task at hand. Forgive everyone who thinks that disabling ctrl+alt+del is rather pointless and doesn't want to write a ton of code for a someone else.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to capture CTRL, SHIFT and ALT ?
    By goldenrock in forum C Programming
    Replies: 3
    Last Post: 11-06-2003, 12:20 AM
  2. Trapping Ctrl Alt Delete
    By emus21 in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-17-2003, 12:10 PM
  3. Ctrl + Alt +Delete
    By golfinguy4 in forum Windows Programming
    Replies: 4
    Last Post: 10-27-2002, 06:46 PM
  4. Problem need help
    By Srpurdy in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2002, 12:45 PM
  5. memory management...
    By master5001 in forum Game Programming
    Replies: 24
    Last Post: 01-07-2002, 04:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21