Results 1 to 19 of 19

Thread: disable alt ctrl del in windows 2000/XP

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    Evansville, IN
    Posts
    5

    Exclamation disable alt ctrl del in windows 2000/XP

    How do you disable alt ctrl del in windows 2000
    and windows XP. The API calls that disable alt
    ctrl del in windows 9X dont't work with 2000/Xp.
    Please help me so that I can finish my project.
    Thank you,
    Noah

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Use the Query_Unload Mode of your main form.[Highlight=VB]Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    'there are 5 unloadmode levels
    Select Case UnloadMode
    Case vbFormControlMenu 'UnloadMode 0
    'form is being unloaded via the Close
    'command from the System menu or
    'the X button on the form
    Cancel = -1
    Case vbFormCode 'UnloadMode 1
    'Unload Me has been issued from code
    Case vbAppWindows 'UnloadMode 2
    'Windows itself is closing
    Case vbAppTaskManager 'UnloadMode 3
    'the Task Manager is closing the app
    Case vbFormMDIForm 'UnloadMod 4
    'an MDI child form is closing because
    'its parent form is closing
    End Select
    End Sub

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can't disable Ctrl-Alt-Delete in NT.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    VB Code:
    1. With Soldering_Iron
    2.    .RemoveKey "DELETE"
    3. End With

    There is no VB way of disabling the CTRL+ALT+DEL combination and this is for a very good reason....why do you want to do this? There may be another less drastic measuer to take...

    HTH,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by MerrionComputin
    There is no VB way of disabling the CTRL+ALT+DEL combination and this is for a very good reason....why do you want to do this? There may be another less drastic measuer to take...
    There's no C++, Pascal, Assembler, Befunge, etc., way of doing it.

    Whatever happens, NT gets Ctrl-Alt-Delete first.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Location
    Evansville, IN
    Posts
    5

    What I need to do

    I need to disable or hide my program from the task manger so that it can not be bypassed by the user. I creating a program that can help limt what people can do on public computer termials. For example prevent them from messing with settings.
    Last edited by calble; Feb 25th, 2002 at 08:38 PM.

  7. #7
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    This is already possible through Windows NT user management (System Tools - > User Manager).

    Set up a new group and restrict its rights then add the low rights users to that group.

    HTH,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  8. #8
    Addicted Member
    Join Date
    Aug 2001
    Location
    UK
    Posts
    204
    It CAN be blocked with C++, My friend gave me a program he made and it blocked it succesfully, He wouldnt tell me how it was done exactly but he said he 'remapped the keys'.

    If anyone has any idea on how to do this then please say!!

    I will try to find his program to show you...

  9. #9
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Well...

    What about registering the prog as a service?
    doesnt that work lol
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by Neilbaker86
    It CAN be blocked with C++, My friend gave me a program he made and it blocked it succesfully, He wouldnt tell me how it was done exactly but he said he 'remapped the keys'.

    If anyone has any idea on how to do this then please say!!

    I will try to find his program to show you...
    Not under NT you can't...you have to replace gina.dll which I think someone mentioned before...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: disable alt ctrl del in windows 2000/XP

    Originally posted by calble
    disable alt ctrl del in windows 2000/XP
    Ahh, the age-old debate. Might as well stick a fork in her, sparky, because she's done!
    My evil laugh has a squeak in it.

    kristopherwilson.com

  12. #12
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    You can disable the task list though.

  13. #13
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Theres a thread to do with this in General VB. Take the link, and at the bottom, it has a method of doing it on NT. But its extremely risky.. involving some keyboard mapping, if I'm correct.

    I think I have an example of how to block the Ctrl + Alt + Del in xp.. but its done by changing something in the Registry..
    Don't Rate my posts.

  14. #14
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    This be what I talks of
    Attached Files Attached Files
    Don't Rate my posts.

  15. #15
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Pc_Madness
    Or anyone who uses this code in W2K.
    Just check whether this code disables and enables shutdown and restart options in the start menu correctly.

  16. #16
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    ???

    That example enables and disables the Alt+ctl+Del.

    lol, I think I know what you did....
    Don't Rate my posts.

  17. #17
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Pc_Madness What according to you could have gone wrong?
    The problem seems to have occured in W2K Pro edition.

  18. #18
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    The example I posted disables the Alt+Ctrl+Del by editing the a registry key.

    When you run the program the first time - tick some boxes, etc, those things are disabled. Close the app - There still disabled. I did it to myself, scared the **** out of myself when I could get my Alt+Ctrl+Del back... but then I ran it again, and checked some boxes and things started working again.

    Although I had alot of trouble adding the code to my app...
    Don't Rate my posts.

  19. #19
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    I know how to use it. Actually, I am the author of the code at PSC. Someon had a problem with W2K PRO version, that's why I was asking you.
    Anyways, what trouble did you have integrating it in your code?

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