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
Thanks
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 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
ASKER
Thanks
Bought the question.
I have the same problem that you last described, what did you do to get around the timeout?
I have the same problem that you last described, what did you do to get around the timeout?