Click to See Complete Forum and Search --> : password program
brjames
Jan 17th, 2000, 01:04 AM
I am creating a password program for use in windows and I was wondering if there is any way of disabling the Ctrl ALT DEL checking in windows?
Thanks!
My code is below:
Private Sub cmdEnter_Click()
If Text1.Text = "letmein" Then
End
Do While Text1.Text <> "letmein"
Loop
End If
End Sub
Private Sub cmdRetry_Click()
Text1.Text = ""
End Sub
HarryW
Jan 17th, 2000, 02:01 AM
I don't know how to do what you said, but if that's your code, you'll get stuck in a loop if the user doesn't get it right first time.
Ctrl Alt Del might be the ONLY way of getting out of it then :D
Fox
Jan 17th, 2000, 10:06 PM
Yes, you should really update your code...
Anyway here's how to disable CTRL-ALT-DEL:
'Into Module
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
Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim Temp As Long
Temp = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
'While Form_Load
DisableCtrlAltDelete True
------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.