We'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
Any comment would be highly appreciated.