473,378 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Answer: Verify Windows Password

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: 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.

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"
  6.  
  7.     ' .... your code ...
  8. End If
  9. End Sub
  10.  
  11.  
  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.
  15.  
  16. Dim timeLocked As Date
  17.  
  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
  29.  
  30.  
  31. End Function
  32.  
Apr 27 '12 #1
4 2329
NeoPa
32,556 Expert Mod 16PB
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
rberke
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?
Apr 27 '12 #3
NeoPa
32,556 Expert Mod 16PB
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
rberke
3
I understand now. Thanks for your help.
Apr 29 '12 #5

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

Similar topics

2
by: ed | last post by:
Hi, how do i check in vb.net if other applications is already connected to an access database (.mdb file)? Let's say I have an application that opens an mdb file, for example - test.mdb. Then I...
2
by: Andrew Robinson | last post by:
I need to make a web service call using an HTTPS POST. XML data is returned in the body of the HTTPS reply. What is the best way to do this with asp.net web services? I am very comfortable in...
1
by: Artem | last post by:
here: http://www.thescripts.com/forum/thread638947.html why I cannot reply on this post?
2
by: Leon | last post by:
Hi, Basically I've written a NNTP-client which is able to post new messages, but inable to post replies to messages. I've tried posting a reference string into the header of the new article...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.