By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,054 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,054 IT Pros & Developers. It's quick & easy.

Answer: Verify Windows Password

P: 3
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:

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.

Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2. Private Declare Function LockWorkStation Lib "user32.dll" () As Long
  3. Sub test()
  4. If UserVerifiedSecuredFunction Then
  5.     MsgBox "Now running secured function"
  7.     ' .... your code ...
  8. End If
  9. End Sub
  12. Function UserVerifiedSecuredFunction() As Boolean
  13. ' returns true if user has entered his Windows Logon password within 20 seconds
  14. ' returns false if user decides not to access the secured function, or does not respond with 20 seconds.
  16. Dim timeLocked As Date
  18. If vbOK = MsgBox("Do you want to access the secured function? If so, you must enter your windows password within 20 seconds.", vbOKCancel) Then
  19.     timeLocked = now
  20.     LockWorkStation
  21.     If vbOK = MsgBox("Please click OK with 10 seconds to access the function, or Cancel to skip the function.", vbOKCancel) Then
  22.         If now - timeLocked > 30 / 24 / 60 / 60 Then
  23.             MsgBox "You did not verify credentials quickly enough."
  24.         Else
  25.             UserVerifiedSecuredFunction = True
  26.         End If
  27.     End If
  28. End If
  31. End Function
Apr 27 '12 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 15k+
P: 31,494
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.
Apr 27 '12 #2

P: 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 : //

To me that looks like something that is INSIDE Bytes, not outside. What am I missing?
Apr 27 '12 #3

Expert Mod 15k+
P: 31,494
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.
Apr 27 '12 #4

P: 3
I understand now. Thanks for your help.
Apr 29 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.