Results 1 to 3 of 3

Thread: password program

  1. #1

    Thread Starter
    Lively Member brjames's Avatar
    Join Date
    Jan 2000
    Location
    Tenby, Wales, UK
    Posts
    121

    Post

    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


  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    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

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Yes, you should really update your code...

    Anyway here's how to disable CTRL-ALT-DEL:

    Code:
    '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
    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.



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