Results 1 to 10 of 10

Thread: Ctrl+alt+del?????

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    VIETNAM
    Posts
    209

    Ctrl+alt+del?????

    When u press "CTRL+ALT+DEL",you can close the program running.So can u tell me if theres anyway to prevent closing he program FROM pressing "ctrl+alt+del"?

    THANK YOU FOR ANY HELP

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    You can disable Ctrl-Alt-Del on NT and 2K but this is very risky. It can prevent you from ever being able to log on again!

    Be sure to enable Automatic Logon by specifying DefaultDomainName, DefaultUserName, DefaultPassword and AutoAdminLogin in the registry under Windows Login. Otherwise you will not be able to logon again. See Knowledge Base article Q114615 for details
    ksm

  3. #3
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    Yes u can:

    VB Code:
    1. Public Declare Function SystemParametersInfo Lib _
    2. "user32" Alias "SystemParametersInfoA" (ByVal uAction _
    3. As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
    4. ByVal fuWinIni As Long) As Long
    5.  
    6. Sub DisableKeys(bDisabled As Boolean)
    7.     Dim X As Long
    8.     X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    9. End Sub
    10.  
    11. 'To disable Ctrl-Alt-Del etc use this:
    12. DisableKeys (True)
    13. 'Use this in your Form_Unload to re-enable the keys:
    14. DisableKeys(False)

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    The above code will only work in Win 9x

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I believe the best you can do on NT based machines is to prevent the app from showing in the task list, but I don't think you can block Ctrl-Alt-Del

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    You can prevent the task list from appearing using a registry tweak. Other than that, if you really want to block Ctrl-Alt-Del on Win NT, you will have to use VC to create a dll which will replace MSGina.dll. Search on MSDN for more information on GINA.

  7. #7
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    Am I going blind and mad? I can't find the word 'NT' in the question. How do you guys know he's asking it for Win NT?

  8. #8
    Junior Member
    Join Date
    Jul 2002
    Posts
    20
    Michael_Kamen ... how do you know he's not? Might as well give him all of the information.

    phanbachloc ... why would you want to do this? It sounds pretty evil to me.

  9. #9
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    Originally posted by Cogen
    Michael_Kamen ... how do you know he's not? Might as well give him all of the information.
    That's right yeah.


    phanbachloc ... why would you want to do this? It sounds pretty evil to me.
    Why is it evil? I use this all the time to prevent my security programs from being shut down.

  10. #10
    Junior Member
    Join Date
    Jul 2002
    Posts
    20
    Sorry, I don't mean to imply that phanbachloc is actually doing something evil, as you stated, some people use it for good intentions as with your security programs. I personally just like hearing the reason behind why someone wants to do something like that when they ask. If you are making an application for a business, then there could be a valid reason, however the ctrl-alt-delete combination is there for a reason, and to make a distributed application that takes away from the users right to use those hot keys can be a mistake in many situations. If I download a program that disables ctrl-alt-delete, there better be a good reason, otherwise it's getting uninstalled pretty quickly.

    Just my opinion though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width