locked
Credential Provider logon failure because of "This computer is locked. Only the logged on user can unlock the computer." RRS feed

  • Question

  • I'm developing on win7 credential provider. It can normally work fine.

    Just one problem. If one user locked the computer, others cannot unlock the computer unless switch user. Windows popup-message is "This computer is locked. Only the logged on user can unlock the computer.".

    I have checked the NTSTATUS of this logon failure, both status and substatus are STATUS_SUCCESS. So that I cannot catch the logon failure in ReportResult. But I really need to know every logon failure of my credential provider.

    How can I catch the logon failure? Can anyone help me?Thanks!

    Friday, February 28, 2014 9:00 AM

Answers

  • A walk-around solution is used.  

    Use WTSQuerySessionInformation to get username of current session.  If this username is different from that one trying to login, it should be a failed logon.


    • Marked as answer by nadia612 Tuesday, August 12, 2014 3:58 AM
    Tuesday, August 12, 2014 3:56 AM