Answer: Verify Windows Password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rberke
    New Member
    • Apr 2012
    • 3

    Answer: Verify Windows Password

    How do I post a reply to an old thread?

    When I click on "Post Reply" button, I am asked to sign on. But, after I sign on the post "reply button" disappears.

    The thread I want to answer is: http://bytes.com/topic/access/answer...ndows-password

    It was a most amusing thread but no one ever posted a solution to the Author's question.

    Here is my vba solution which I think is nearly foolproof, and guaranteed to not expose the computer to a brute force weakness.

    Code:
    Option Explicit
    Private Declare Function LockWorkStation Lib "user32.dll" () As Long
    Sub test()
    If UserVerifiedSecuredFunction Then
        MsgBox "Now running secured function"
    
        ' .... your code ...
    End If
    End Sub
    
    
    Function UserVerifiedSecuredFunction() As Boolean
    ' returns true if user has entered his Windows Logon password within 20 seconds
    ' returns false if user decides not to access the secured function, or does not respond with 20 seconds.
    
    Dim timeLocked As Date
    
    If vbOK = MsgBox("Do you want to access the secured function? If so, you must enter your windows password within 20 seconds.", vbOKCancel) Then
        timeLocked = now
        LockWorkStation
        If vbOK = MsgBox("Please click OK with 10 seconds to access the function, or Cancel to skip the function.", vbOKCancel) Then
            If now - timeLocked > 30 / 24 / 60 / 60 Then
                MsgBox "You did not verify credentials quickly enough."
            Else
                UserVerifiedSecuredFunction = True
            End If
        End If
    End If
    
    
    End Function
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    It isn't possible as that's an archive imported from outside of Bytes. Essentially it reflects content from elsewhere.

    Having said that, I was able to. Possibly as a moderator. I've added a link there to this thread for you.

    If it is ever refreshed from source I expect that will be lost though.
    Last edited by NeoPa; Apr 27 '12, 08:46 PM.

    Comment

    • rberke
      New Member
      • Apr 2012
      • 3

      #3
      Thanks. I see the link you added, and that is good.



      But, I don't entirely understand. How can I tell which links are outside bytes?

      The URL for the link is
      http : //bytes.com/topic/access/answers/660733-verify-windows-password

      To me that looks like something that is INSIDE Bytes, not outside. What am I missing?

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32633

        #4
        Clearly the address doesn't show the difference (I'm sure it used to mind), but the fact that all users have "P: n/a" and none of the user names are links are clues to where this comes from.

        It's within Bytes, but it's been imported from outside to reflect external content.

        Comment

        • rberke
          New Member
          • Apr 2012
          • 3

          #5
          I understand now. Thanks for your help.

          Comment

          Working...