locked
How can i unlock a lock PC through C++ win 32 Coding RRS feed

  • Question

  • I just want an application ,using that can i unlock my  workstation,

    like when i pressed a button and we call a LockWorkStation() then system will lock,and now i just want an application to unlock this workstation without entering the password or username on locked desktop,in c#.Net,and in c++ win32 but without credential provider ,

    and it can be possible,if is please resolve my problem

     

    • Edited by Yogendra kumar gangwar Wednesday, June 1, 2011 6:54 AM
    • Moved by Rob Pan Thursday, June 2, 2011 7:15 AM for better support (From:Visual C++ General)
    Tuesday, May 31, 2011 7:16 PM

Answers

  • You need to create your own gina/credential provider to provide your alternative authentication method. For details, search "unlock" in the Security for Applications in Microsoft Windows forum.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Tuesday, May 31, 2011 9:25 PM

All replies

  • That may be possible, but I am not certain it is.  If it is, I don't know how it can be done.

    When you lock your workstation the display and input devices become attached to the secure desktop.  This is not a desktop your code can normally interact with (to prevent malware authors from spoofing the login prompt and capturing the login password to the workstation).

    Tuesday, May 31, 2011 7:23 PM
  • You need to create your own gina/credential provider to provide your alternative authentication method. For details, search "unlock" in the Security for Applications in Microsoft Windows forum.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Tuesday, May 31, 2011 9:25 PM
  • how i can unlock my computer when bluetooth comes in my computer range,i am able to lock but unable to unlock the PC is there possible to unlock through coding in c++ win32 or c#.net but without credential provider
    • Merged by Rob Pan Monday, June 6, 2011 2:58 AM the same thread
    Wednesday, June 1, 2011 10:13 AM
  • As Sheng told you here you need to write a gina/credential provider.
    Wednesday, June 1, 2011 2:08 PM
  • is there any other way to unlock workstation,i am able to use credential provider but just want to another way,if is there please tell me,from any registry or other?
    Wednesday, June 1, 2011 5:49 PM
  • Hi,

    According to your description, it seems that your thread is about security for application. So I will move it into the correct forum. Thanks for your understanding.

    In addition, Gina is not supported since Windows Vista. Instead you need to use credential provider to provide.

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, June 2, 2011 7:15 AM
  • Hi,

    According to your description, it seems that you have posted two similar threads. So I will merge for better support. Thanks for your understanding.

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, June 6, 2011 2:57 AM