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 4549272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:20:14+00:00 2026-05-21T16:20:14+00:00

Is there any way, without using DLL injection, services, and whatnot, to unlock the

  • 0

Is there any way, without using DLL injection, services, and whatnot, to unlock the local computer using .net? The windows username and password is available to my program.

  • 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-21T16:20:14+00:00Added an answer on May 21, 2026 at 4:20 pm

    I think there is no .NET function that you can use to unlock your computer and there is no short way to achieve it. But there is a way.

    You need to implement your custom ICredentialProvider componet, hook it into the windows authentication mechanism, and implement communication between it and your application.

    The Windows 7 authentication mechanism consists of two parts. They are WinLogon and LogonUI. LogonUI is responsible for displaying a login window and notification of WinLogon about users’ actions. Winlogon reacts for events from LogonUI and performs required actions to log-in users, log-off users, lock sessions, and unlock sessions.

    Microsoft provides a mechanism to hook a custom behavior into LogonUI. To do this you need to create a COM object that implements ICredentialProvider and register it with a system. You component can tell LogonUI to tell WinLogon to unlock a session.

    Here are couple examples of how to build custom credential providers:
    How to Build Custom Logon UI’s in Windows Vista,
    Create Custom Login Experiences With Credential Providers For Windows Vista

    This mechanism will work for Windows Vista and Windows 7. You need to use similar mechanism called GINA if you want to achieve the same result for Windows XP.
    Here you can read more about GINA: Winlogon and GINA

    There was a hack that you could kind of “unlock” a session in Windows XP.

    WinLogon in Windows XP created an additional desktop and switched to it when user chose to lock a session. It was possible to switch back to a “normal” desktop using Windows API. Everything worked fine except WinLogon still though that system is locked and did not react for Ctrl-Alt-Del.
    I believe that it will not work for Windows Vista and 7. But you could try. It can be simple than implementing a custom credential provider.

    Here is an example of how to do that: Remotely Unlock a Windows Workstation

    I hope this answered your question.

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

Sidebar

Related Questions

Is there any way to implement something similar to Chatroulette without using Flash or
Is there any way to deploy an item without using this attribute ? I'm
Is there any way to accept POST type requests without using Nerve lib in
Is there any way to check whether a file is locked without using a
Is there any way to access the command line arguments, without using the argument
Is there any way to force an update of software using RunOnce, without having
Is there any shorthand way of defining and using generic definitions without having to
Is there a way (without installing any libraries) of validating XML using a custom
Is there a way to get an associated icon in C# without using any
I need codes for vb.net Getkeystate Function() without using any DLL.I'm beginner for API

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.