Results 1 to 3 of 3

Thread: Ctrl-Alt-del

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Chennai,India
    Posts
    7
    Iam not able to disable the ctrl-alt-del way of closing an application using your program.Please help me out.
    !@#$%

  2. #2
    Guest
    Put this code in a module

    Code:
    Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
    
    ' The sub to disable the CtrlAltDelete
    Sub DisableCtrlAltDelete(bDisabled As Boolean)
    
        Dim X As Long
        X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    
    End Sub
    Put this code in a Load event of the Form.

    Code:
    Private Sub Form_Load()
    
       'disable CtrlAltDel
       Call DisableCtrlAltDelete(True)
    
    End Sub


  3. #3
    Guest
    I think this will also disable the Ctrl+Esc as well.

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