Create a service for an application?

  • Thread starter Thread starter Gonzo
  • Start date Start date
G

Gonzo

I have an old application that just ran as by clicking on its exe. It's
just goes into the system tray by the desktop clock. It's always run as a
startup item, but I want to get it to run as a service, so if it fails I can
get it to restart and have MOM 2005 alert me due to it's event id.

Anyway I have created the service and the application starts up but only in
the background "processes > task manager". It doesn't show up in the system
tray. It has to be there so I can double click it to bring up the
application and use it.

I tried the "allow service to interact with the desktop" but I get some sort
of error saying this is not supported. It's like a loop.
Any ideas would be great?
 
I don't understand. I have already done this and created the service part,
as explained in the post.
 
Sorry, I misread your post. As far as I know that has to be done with
the Shell_NotifyIcon API function, it has to be programmed. I don't
know how to do that other than perhaps using a third party helper
application.

John
 
What is a Shell_NotifyIcon API function? The thing is if I just run the
application fromthe desktop it puts this icon in the system tray, but not if
run as a service...
 
Does this program have network access? Did you create the service with
srvany.exe? I seem to remember that the srvany.exe that came with NT4 had
the limitation that the service could be either interactive or have netwok
access, but not both. I think there was a work around for this but I don't
recall what it was.
Louis
 
Shell_NotifyIcon is used in programing, it's written in the program.
Did you set your service to start when the computer starts, aka
"Automatic" start? What happens if you start the service after the
computer is started and the desktop is loaded?

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top