Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 341377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:42:12+00:00 2026-05-12T10:42:12+00:00

As we all know,we can use such api as LockWorkStation() in user32.dll to lock

  • 0

As we all know,we can use such api as “LockWorkStation()” in “user32.dll” to lock windows.
But how to unlock it?

For example, if i run an app at first, I want the app to unlock windows by itself after 30 second.
How to do it? In another word, if auto-logging in, windows will read the username and password from regedit and then use an api to login by those.
Now i need the api. It must exist, but it seems not to make public.

I can get the app the username and password of the windows.

It seems that there is some Api in WBF.But you know,the resource is too less.
I don’t want to send keyboard message to solve the problem,for it is the worst method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:42:12+00:00Added an answer on May 12, 2026 at 10:42 am

    Promoting my comment because it needs more explanation:

    You really want to write a GINA (for XP) or a Credential Provider for Windows Vista and beyond.

    Fundamentally the Windows authentication model is based on the user providing evidence (identification) that they’re authorized to access the computer (either by their credentials or biometric data or smartcard or other information). Once you’ve been authorized to log onto the computer, Windows allows you access.

    When the workstation is locked (for whatever reason – screen saver, user typing in Win-L) the user needs to be re-authenticated.

    Typically that’s sufficient – the authorization is good for a period of time (determined by the administrator). If (for policy reasons) you need a finer grained control model, you could use your “LockWorkstation” idea to force the user to re-authenticate themselves. You need to be VERY careful about false positives (nothing pisses off users more than being told they’re not allowed to use their computer simply because they removed their glasses or combed their hair differently) and how much drain on system resources your app causes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 271k
  • Answers 271k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You are missing an if in the else if statement.… May 13, 2026 at 1:44 pm
  • Editorial Team
    Editorial Team added an answer You can explore this yourself using the iPhone Simulator, opening… May 13, 2026 at 1:44 pm
  • Editorial Team
    Editorial Team added an answer The general advice to use JSTL and EL instead of… May 13, 2026 at 1:44 pm

Related Questions

I want to add San Storage support in my application. Is there a standard
I want to bounce an idea around. I have been building web services and
I have general question regarding the use of pointers vs. references in this particular
Simple question - given an IList<T> how do you perform a binary search without

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.