473,397 Members | 1,950 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,397 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 2331
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.