Questions about creating my 1st Windows Service

Windows specific forum
swhite
Addict
Addict
Posts: 805
Joined: Thu May 21, 2009 6:56 pm

Questions about creating my 1st Windows Service

Post by swhite »

Hi

I need to create a Windows Service that will watch a TCP port for incoming data to capture emergency warnings from fuel sites. I have never created a Windows Service before so I wondered what some of the best practices are:

I assume I will need to run a loop so I wondered how much time should I wait between tests for data so that I do not take all the cpu time etc. Do I just use a Sleep function between tests for data.

What is required to make this program usable as a service in Windows. Are there special considerations for making services? Is the service created as a DLL or EXE?

As you can see I am new at this and have lots to learn. Any advice would be appreciated.

Thanks,
Simon
Simon White
dCipher Computing
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: Questions about creating my 1st Windows Service

Post by Mistrel »

Post Reply