Click to See Complete Forum and Search --> : Run the Application as a Service


SunnyT
February 19th, 2008, 09:32 PM
Hi,

I have an application written in C++ and it has GUI to interact with users. Now I want to run it as a service.

The problem is that when I run it under LocalSystem, the service can interact with the desktop, but when I use the domain account, which is the currently loggon account, I can't set the option "Interact with destop", hence it can't display the GUI to interact with the user.
I'm using Window 2000.

Can anyone help me with this problem? Is there any way to display the GUI when running the service under a domain account? Do I have to write another program to do that? And if yes, how and where can I find the solution?

TheCPUWizard
February 19th, 2008, 09:52 PM
Hi,

I have an application written in C++ and it has GUI to interact with users. Now I want to run it as a service.

The problem is that when I run it under LocalSystem, the service can interact with the desktop, but when I use the domain account, which is the currently loggon account, I can't set the option "Interact with destop", hence it can't display the GUI to interact with the user.
I'm using Window 2000.

Can anyone help me with this problem? Is there any way to display the GUI when running the service under a domain account? Do I have to write another program to do that? And if yes, how and where can I find the solution?

The simple answer is no.

This has been discussed at length here on CodeGuru quite recently, but I guess you dont know how to search. :rolleyes:

Basically it is typically a BAD idea to have a service interact with the desktop. A MUCH better architecture is to have the service expose some type of communication endpoint (NamedPipe, Socket, Web Service, the list is extensive). Then write a separate UI application that communicates with this service.