Link to home
Start Free TrialLog in
Avatar of stanleylcm
stanleylcm

asked on

How can I write a program to run in NT as a service ?

How can I write a program to run in NT as a service ?
Thanks
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Any application can be run as a service under NT. There are however a number of considerations. Normally a service does not have a user interface, if it does then it cannot normally have network / database access. There are ways around this though but there is an element of security risk depending on the methods chosen. If you have or can obtain the Windows NT Resource Kit, there are full details of how to make any application run as a service. The word document srvany.doc details the methodology and the restrictions / concerns about doing this. If you cannot obtain this I can Email you the required files if you post your address or EMail me at TimCottee@Earthling.net

ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stanleylcm
stanleylcm

ASKER

Hi waty !
Thanks for your answer.
However, I have some problem, actually my prog is a backup
program which will use a time control to continuously run,
when i set it run as a service, it can run, but quit after some
time ( about 2 min )
and when i look up the event viewer,
it got "Timeout (120000 milliseconds) waiting for service to connect"
Pls help
Thanks
Thanks
Bought the question.

I have the same problem that you last described, what did you do to get around the timeout?