Windows service showing a GUI when no user is logged in

孤者浪人 提交于 2020-01-04 14:16:50

问题


Is it possible to a display dialog window from a windows service over the logon screen of Windows 7 (when no user is logged in yet) ?

I found this article explaining how to display a window on a logged in user desktop but how to do it when there is no user logged in ?

I was thinking about trying to automatically log in a user then display the window on his desktop but is it possible to display it directly over the logon screen ?


回答1:


GINA was replaced by Windows Vista Credential Provider.

One of the samples (SampleHardwareEventCredentialProvider) does exactly what I want: display a window over the Logon UI and works with Windows 7.




回答2:


Out of the box there is not an easy way to do this, I'm sure with some really convoluted PInvoke you might be able to accomplish something, but in all reality, I'd look at your system in general, showing dialogs from a Windows Service to a user is typically frowned upon.



来源:https://stackoverflow.com/questions/4960737/windows-service-showing-a-gui-when-no-user-is-logged-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!