Results 1 to 3 of 3

Thread: password program

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Add a Module to your App. Paste this code into the Module:
    Code:
    Option Explicit
    
    Option Explicit
    
    'Declarations
    Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Public Declare Function GetCurrentProcess Lib "kernel32" () As Long
    Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal _
    dwProcessID As Long, ByVal dwType As Long) As Long
    Public Const RSP_SIMPLE_SERVICE = 1
    Public Const RSP_UNREGISTER_SERVICE = 0
    
    '//to restore your application to the ALT+CTLR+DEL list
    Public Sub AddProgramToList()
        Dim lngProcessID As Long
        Dim lngReturn As Long
        
        lngProcessID = GetCurrentProcessId()
        lngReturn = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
    End Sub
    
    '//to remove your application from the ALT+CTLR+DEL list
    Public Sub RemoveProgramFromList()
        Dim lngProcessID As Long
        Dim lngReturn As Long
        
        lngProcessID = GetCurrentProcessId()
        lngReturn = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
    End Sub
    Then in form's Load event paste this code:
    Code:
    RemoveProgramFromList
    HTH


    ------------------
    Visual Basic Programmer
    ------------------
    PolComSoft
    You will hear a lot about it.


  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    I know this place has answered this before because I've used it, but I'm too lazy to direct you exactly where. Just do a search on it. The answer is pretty easy to find.

  3. #3
    Lively Member brjames's Avatar
    Join Date
    Jan 2000
    Location
    Tenby, Wales, UK
    Posts
    121

    Post

    I am creating a password program and I was wondering if there is any way of disabling the CRTL ALT DEL checking in windowss?

    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


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