Results 1 to 5 of 5

Thread: Disable Ctrl-Alt-Delete and Start Menu keys in Windows 2000

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Rhode Island
    Posts
    5

    Wink Disable Ctrl-Alt-Delete and Start Menu keys in Windows 2000

    Does anybody know how to disable Ctrl-Alt-Delete in NT/2000? The site has some code on it, but it only works for Windows 98.

    Also, is there a way to disable that start menu key?

    I appreciate any help that you guys can offer


    Jason
    Jason Brown

  2. #2
    Hyperactive Member zer0_flaw's Avatar
    Join Date
    Apr 2001
    Posts
    448
    Code:
    Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Code:
    cmdDisable_Click()
        Static bDisabled As Boolean, find_it As Long 
        bDisabled = Not bDisabled
        find_it = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
        Call EnableWindow(FindWindowEx(find_it, 0&, "Button", vbNullString), Not bDisabled)
    End Sub
    Code:
    cmdEnable_Click()
        Static bDisabled As Boolean, find_it As Long    
        bDisabled = Not bDisabled
        find_it = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
        Call EnableWindow(FindWindowEx(find_it, 0&, "Button", vbNullString), bDisabled)
    End Sub

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    zer0_flaw, your code juz disable the Start Button and not disable the Ctrl+Atl+Del or Ctrl+Esc combination key.

    For that, JayLogicon you can execute a search in this forum and sure you'll get the answer or download the API Guide from www.allapi.net

    regards,

  4. #4
    Hyperactive Member zer0_flaw's Avatar
    Join Date
    Apr 2001
    Posts
    448
    zer0_flaw, your code juz disable the Start Button and not disable the Ctrl+Atl+Del or Ctrl+Esc combination key
    No **** man. I answered his second question because that's all I knew how to do.
    Also, is there a way to disable that start menu key?

  5. #5
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    yes, there is. juz can't get ir back from my collection. Sure someone will have it.

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