Is it possible to create service that uses main loop only!
- From: si <nomail@xxxxxxxxx>
- Date: Tue, 13 Sep 2005 16:27:11 +0200
Hello
I have been assigned a task of creating a windows service application. I did some reading and wrote a sample application. The application is simple console program that launches thread that handles the actual service work.
When I receive request from the service manager to stop the service I send message to my thread telling it to stop. When thread is stopped I exit the service main function and that is it.
Is this the simplest way to implement the service. I mean, is it possible to implement the service without the second thread?
si .
- Follow-Ups:
- Re: Is it possible to create service that uses main loop only!
- From: Stefan Kuhr
- Re: Is it possible to create service that uses main loop only!
- Prev by Date: CreateFile problem returning error (The network request is not supported)
- Next by Date: Re: How can I get the INSTANCE handle from a HHOOK?
- Previous by thread: CreateFile problem returning error (The network request is not supported)
- Next by thread: Re: Is it possible to create service that uses main loop only!
- Index(es):
Relevant Pages
|