I have to test it, but if the service executes another program, that program is also executed as system, not the user, and the same problem will still exists...
Main Topics
Browse All TopicsWe've a legacy Visual Basic 6.0 project that runs as a service using srvany.exe file.
It runs as a local service and some times displays a message in a window.
Recently we wanted to use this program in Windows Vista, every thing works well, except the displaying forms.
"A program can't display a message on your desktop" appears and when clicking "Show me the message" button, the app's window in displayed.
As I searched for this problem, this is described as below:
You have a service, or an app running as one, that is trying to pop-up a window from the SYSTEM (session 0) desktop to your logged-on
session. By default, this is NOT allowed anymore - it worked in XP/2003/downlevel OSes because in those OSes, you logged into session 0, but not so anymore in Vista / Server 2008.
How can I tell my service to display a window in the current running user's desktop, not the session 0 (System)?
Or an alternative way to solve this problem?
As I said earlier, I'm using Visual Basic 6.0 and my service is being run using srvany
(http://support.microsoft.
Any comment would be highly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Can't be done. Interactive services are not allowed under Vista.
You will need to implement a TCP/IP or UDP conversation between the level 0 (system) service and a simple noddy app which MUST be executed in the context of ALL users who logon as active desktop sessions.
The noddy just needs to "listen" for the "service conversation" and on receipt, display the appropriate message on behalf of the service.
Business Accounts
Answer for Membership
by: HooKooDooKuPosted on 2009-02-16 at 06:40:25ID: 23650097
Can the service execute another program?
If so, you could write a simple application that displays a message from a command line or from a temporary file, and call this application from the service.