Results 1 to 3 of 3

Thread: Disable windows keys??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    UK
    Posts
    204

    Question Disable windows keys??

    Does anyone know how to disable the CTRL+ALT+DEL and the windows start menu key(keyboard) in VB??

  2. #2
    j2k
    Guest
    Aah this question has been asked LOADS of times! It's possible in VB to block Win9x (95,98,98SE,Me) CTRL-ALT-DEL and Windows system buttons but not in WinNT (NT/2000). Search in the forum for "CTRL-ALT-DEL" and you're sure to find the code

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Here you go:

    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


    Private Sub DisableCtrlAltDelete(bDisabled As Boolean)
    Dim x As Long
    x = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    End Sub

    Private Sub Command2_Click()
    'Enable CtrlAltDelete
    DisableCtrlAltDelete (False)
    End Sub

    Private Sub Command1_Click()
    'Disable CtrlAltDelete
    DisableCtrlAltDelete (True)
    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