I am looking to implement a feature when an application running as a windows service (as localsystem) will display a modal warning, something similar to a shutdown screen or UAC warning screen. Basically, something that is impossible to dismiss without noticing
There are 2 things that I don't know how to implement:
It is my understanding that Windows Vista+ no longer allows an application to generate system modal windows. Is it possible to bypass that, and is there any easy way of doing that? The only alternative I could think of is opening a full-screen window and intercepting alt+tab, ctrl+alt+del, and such
I also believe that it is not possible to display a UI in user session from a service, since it runs in another session. Is there a hack that allows bypassing that? One thing I could think of is: find and inject code into csrss.exe or winlogon.exe running in given session, and invoke remote thread. Another approach is to obtain handle to winlogon and CreateProcessAsUser(). Is there another, easier way?