I'm writing a service/user-mode application that may send the system into sleep after a certain customizable period of inactivity. The user-mode process may require to display a user message/warning before performing a power operation. This works great if a user is logged in, but if the workstation is locked, a user sees a display like this:
So I'm curious if it is possible to display my own window (overlay) above such a logon screen?
Press the Windows key + R to bring up the Run box. Type netplwiz or control userpasswords2 and hit Enter. In the User Accounts dialog that appears, select the account you wish to use to log in automatically, and then uncheck the box marked Users must enter a user name and password to use this computer.
Here in the Local Security Policy window, navigate to “Local Policies” and then to “Security Policies.” Once you are here, find “Interactive logon: Message title for users trying to log on” and double-click on it. In the settings window enter the message title and click on the “Ok” button to save the changes.
Select the Start button, then select Settings > Accounts > Your info. Under Create your picture, select Browse for one. Or, if your device has a camera, select Camera and take a selfie.
The only supported API for this, since Vista, is the credential provider. The documentation can be found over on MSDN.
I found this post that might be exactly what I need. I'll post later when I try it out...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With