I am developing my own credential provider and should know it at runtime if the script is a login or session unlock. To do this, I check the CREDENTIAL_PROVIDER_USAGE_SCENARIO returned by the SetUsageScenario interface ICredentialProvider.
In Windows 10, regardless of whether Iām in the login or when the session is locked, I always use the CPUS_LOGON script, and in the previous version of Windows, CPUS_UNLOCK_WORKSTATION returned when the session was blocked and CPUS_LOGON when logging in.
So, it seems that the changes came with Windows 10, which are not reported on MSDN.
Is there any other way to determine if a usage scenario is a locked session?
source
share