Tech Support > Microsoft Windows > Development Resources > How show messagebox with service on login screen (WinXP)
How show messagebox with service on login screen (WinXP)
Posted by Jackson on August 13th, 2004


Hello all.

I have written a service for windows xp and sometimes I may need to
display a message to the users before winlogon. Is it possible to
display a simple message using "Messagebox" ? I think, I must switch
to the current desktop? How can I do it?



Thanks in advance.

Regards

J. Preuß

Posted by Sten Westerback on August 13th, 2004



"Jackson" <joern.preuss@preuss-it.de> wrote in message
news:a9e90d25.0408130130.5306b33b@posting.google.c om...
If a MessageBox() is enough... did you try the
MB_SERVICE_NOTIFICATION flag?

If that isn't enough then you have to modify the security of the
workstation and desktop so that your service may use it.

- Sten



Posted by Simon on August 17th, 2004


The service generally cannot interact with the desktop as it is not
running in that context. However, you can install the service as
'interactive' to allow it to display messages - but this is a
potential security risk depending on the context in which the
application is getting used.


Simon Hayden
http://www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
Latest Version ==========>>> Client Computer

Posted by Simon on August 17th, 2004


The service generally cannot interact with the desktop as it is not
running in that context. However, you can install the service as
'interactive' to allow it to display messages - but this is a
potential security risk depending on the context in which the
application is getting used.


Simon Hayden
http://www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
Latest Version ==========>>> Client Computer

Posted by Simon on August 17th, 2004


The service generally cannot interact with the desktop as it is not
running in that context. However, you can install the service as
'interactive' to allow it to display messages - but this is a
potential security risk depending on the context in which the
application is getting used.


Simon Hayden
http://www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
Latest Version ==========>>> Client Computer