Results 1 to 24 of 24

Thread: Disabling CTRL, ALT + DEL

Hybrid View

  1. #1
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Disabling CTRL, ALT + DEL

    Quote Originally Posted by rory
    works for me ...
    weird.... .

  2. #2
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Re: Disabling CTRL, ALT + DEL

    Try looking up the Kernal32 virus on Symantec.com, it does the same thing and the instructions to remove it should lead you right there.
    Visit here to learn to make the VB interface fit you!.
    "I have not failed 10,000 times. I have successfully identified 10,000 ways that will not work" Thomas Edison
    "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners" -- Ernst Jan Plugge

  3. #3
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Disabling CTRL, ALT + DEL

    Well im not finished yet so cant post the whole code .. but it goes a little something like this .. found this on the web a while ago.

    on The Form ..
    VB Code:
    1. Private Sub Form_Load()
    2.     Call EnableWindows(False, Me.hwnd)
    3.     Call SetHook
    4. End Sub
    5.  
    6. Private Sub Form_Terminate()
    7.     Unload Me
    8. End Sub
    9.  
    10. Private Sub Form_Unload(Cancel As Integer)
    11.     WindowsEnabled = True
    12.     Call EnableWindows(True, Me.hwnd)
    13.     Call UnSetHook
    14.     End
    15. End Sub


    And a very small part in the module is like this ..
    VB Code:
    1. 'This will prevent the task manager from appearing
    2. 'when the user presses Ctrl+Alt+Del. This will also disable the
    3. 'Alt+Tab and the Ctrl+Esc key combinations.
    4. Public Sub AntiTaskManagerController(Enabled As Boolean)
    5.     On Error Resume Next
    6.     If IsWinNT Then
    7.         Call NTController(TASK_MGR, Enabled)                                'control the task manager in registry
    8.         If Enabled Then
    9.             Close #1                                                        'Close the Taskmgr.exe, so we can run task manager normally
    10.         Else
    11.             Dim TMHwnd              As Long
    12.             Dim ProcID              As Long
    13.             Dim ProcessName         As Long
    14.             Dim retVal              As Long
    15.            
    16.             'If task manager opened we closed it first as we can't open an opened file
    17.             TMHwnd = FindWindow("#32770", "Windows Task Manager")           'Find the HWnd of task manager
    18.             retVal = GetWindowThreadProcessId(TMHwnd, ProcID)               'Find the process id
    19.             ProcessName = OpenProcess(&H1F0FFF, 0&, ProcID)                 'Open the process
    20.             retVal = TerminateProcess(ProcessName, 0&)                      'Terminate it back
    21.             Open Environ("WinDir") & "\System32\Taskmgr.exe" For Input Lock Read Write As #1
    22.         End If
    23.     Else
    24.         SystemParametersInfo 97, Enabled, Enabled, 0
    25.     End If
    26. End Sub
    27.  
    28. 'This will enable or disable the windows task manager. Please note that
    29. 'this procedure does not work on any Non-NT based system (win 9x)
    30. Public Sub NTController ( ByVal EnmPrivilage As EnumNTSettings, ByVal Enabled As Boolean)
    31.     If Not IsWinNT Then Exit Sub
    32.     Dim Command         As String   'holds the Value to open
    33.     'Get the text to for the registry value for the selected setting
    34.     Select Case EnmPrivilage
    35.         Case CHANGE_PASSWORD: Command = "DisableChangePassword"         'Don't allow pasword change
    36.         Case LOCK_WORKSTATION: Command = "DisableLockWorkStation"       'Disabling locking of workstation
    37.         Case REGISTRY_TOOLS: Command = "DisableRegistryTools"           'Cancel the register tools, like regedit
    38.         Case TASK_MGR: Command = "DisableTaskMgr"                       'Cancel task manager
    39.         Case DISP_APPEARANCE_PAGE: Command = "NoDispAppearancePage"     'No Display properties page
    40.         Case DISP_BACKGROUND_PAGE: Command = "NoDispBackgroundPage"     'No Background properties page
    41.         Case DISP_CPL: Command = "NoDispCPL"                            'Don't Display CPLs
    42.         Case DISP_SCREENSAVER: Command = "NoDispScrSavPage"             'No Screen saver any more
    43.         Case DISP_SETTINGS: Command = "NoDispSettingsPage"              'No setting page any more
    44.         Case Else: Exit Sub
    45.     End Select
    46.     If IsWinNT Then
    47.         Call CreateRegLong(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", Command, Not Enabled)
    48.         If IsW2000 Then Call CreateRegLong(HKEY_CURRENT_USER, _
    49.        "Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\System", _
    50.          Command, Not Enabled)
    51.     End If
    52. End Sub

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