|
-
Aug 23rd, 2001, 02:22 PM
#1
Thread Starter
Addicted Member
Disable windows keys??
Does anyone know how to disable the CTRL+ALT+DEL and the windows start menu key(keyboard) in VB??
-
Aug 23rd, 2001, 02:25 PM
#2
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
-
Aug 23rd, 2001, 02:37 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|