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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:42:57+00:00 2026-06-11T19:42:57+00:00

For a usb-smartstick application I want to make, I need to be able to

  • 0

For a usb-smartstick application I want to make, I need to be able to unlock a locked workstation in C#. When I insert my usb with a unique id, I want to unlock the ws. What would be the best way to do this?

I’m aiming for a similar application like Rohos Logon Key.

  • 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-06-11T19:42:58+00:00Added an answer on June 11, 2026 at 7:42 pm

    As I understand it in order to achieve this you need replacement / hook into the implementation of the component of Windows that handles logon. To my knowledge there is no other way to achieve what you are asking for – the reason why users are required to enter the secure attention sequence (SAS) before logging in is to prevent malware from spoofing the logon dialog. If any old program could do what you are asking for then this is something that malware would be able to exploit.

    There are two different methods of doing this depending on the version of Windows that you are targetting.

    For Windows XP and earlier

    In order to do this you need to write your own GINA (Microsoft Graphical Identification and Authentication) replacement. FYI implementing such a dll in .Net is a probably a bad idea (see A GINA replacement in a .NET language?). Also this is fairly advanced stuff, to quote one of the below linked articles

    replacing the GINA is an advanced technique that should not be taken
    lightly. You should only do this if you have no other choice (if, for
    example, you are implementing a new logon mechanism that Windows does
    not support).

    For more information on GINA take a look through the following links

    • Unlock Windows workstation programatically
    • Customizing GINA, Part 1
    • Customizing GINA, Part 2
    • Lock Windows Desktop
    • Aucun (a replacement GINA project)
    • Microsoft Graphical Identification and Authentication (GINA) (MSDN)
    • The Essentials of Replacing the Microsoft Graphical Identification and Authentication Dynamic Link Library

    Vista and later

    On Windows Vista and later GINA has been replaced with Credential Providers, so instead you need to implement the ICredentialProviderCredential interface. Although this is a COM interface, again implementing this in a .Net language would be a bad idea.

    More detail can be Found in the following links

    • Winlogon and Credential Providers
    • Create Custom Login Experiences With Credential Providers For Windows Vista
    • How to Build Custom Logon UI’s in Windows Vista
    • Add winlogon login method using C# and YubiKey
    • Credential Provider Samples
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a USB device that I need to be able to talk to
I would be using a USB hub to connect multiple devices. I want to
Is using a USB key to secure an application the best option? If it
I bought an RFID USB kit and haven't been able to read the RFID
I have a USB to one-wire adapter on my desk, I would like to
I use v-usb library for my project. I wrote code and i want compile
I have several USB drives connected to a WinXP SP3 computer, and I need
I want to list USB drives in my machine. How to do it in
I have a USB Joystick, and I want to write my own HID driver
I'm using 4 USB sound cards (ASUS Xonar U1). I want to send to

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.