Even if it were possible to open a window from a windows service, please heed my advice:
- Don't do it!
- Don't even think about doing it.
A windows service can always run even when no user is logged into the system. So what use is it to open a window when nobody is logged on to see it.
Do this instead:
Have a little background application running which lives in the system tray and is started when the user logs in. This application can be the front end to the service and display all kinds of stuff. Make sure though that the user can configure how invasive this application behaves.
I know I alway get pi**ed when something pops up and distracts me form what I'm currently working on.
Best Regards,
-MRB