What are the Post Lock Screen Actions? RRS feed

  • Question

  • What are the Windows system actions upon unlocking the lock screen, e.g. can an application be ran before the desktop re-appears?

    • Edited by AlaskanRogue Sunday, June 10, 2018 12:12 PM Update
    Sunday, June 10, 2018 11:37 AM


All replies

  • Are you asking if a windows service can start a process in a user's interactive session when that session is unlocked?

    • Edited by RLWA32 Sunday, June 10, 2018 1:08 PM
    Sunday, June 10, 2018 1:08 PM
  • Similar to an initial login where Windows calls Userinit to establish the desktop, is something called by the lock screen?
    Sunday, June 10, 2018 1:25 PM
  • According to the Microsoft documentation at Winlogon Notification Packages a notifcation package dll could receve notifications for Winlogon Notification Events, including Lock and Unlock.

    • Marked as answer by AlaskanRogue Tuesday, June 12, 2018 10:14 AM
    Sunday, June 10, 2018 2:11 PM
  • In looking at this page in the documentation links, Event Handler Function Prototype callback function, it says "Event Handler Prototype functions are no longer available for use as of Windows Server 2008 and Windows Vista." What applies to Windows 10 or WinSvr 2016?
    Tuesday, June 12, 2018 1:21 PM
  • Like you, I wish the MS documentation was more comprehensive and easier to interpret.

    It's certainly unclear exactly what is meant by the caveat concerning Event Handler Prototype Functions considering that there are no other qualifications mentioned in the docs.  Perhaps testing is the only way to find out what works and what doesn't work.

    Tuesday, June 12, 2018 1:35 PM
  • Do you know of any documentation that provides insights into the functionality that replaced these capabilities?

    Wednesday, June 13, 2018 9:56 PM
  • Sorry, I don't have any documentation references to offer you. (:
    Wednesday, June 13, 2018 10:06 PM
  • BTW, you can receive Lock/Unlock events for interactive sessions n a Windows service and so those events could be used to start a process.  I don't know if that would meet your needs, but its something to consider.
    Wednesday, June 13, 2018 11:08 PM
  • Do you know of documentation for building notifications for services.
    Thursday, June 14, 2018 1:41 AM
  • See the docs for RegisterServiceCtrlHandlerEx function and the HandlerEx callback function.  You are interested in registering for SERVICE_ACCEPT_SESSIONCHANGE so that your service will receive SERVICE_CONTROL_SESSIONCHANGE notifications.

    Thursday, June 14, 2018 2:08 AM