I have created an NT Services that pulls files from a Directory and transports over to a MSMQ. The Service constantly runs. It waits for single Object in the directory as soon as it sees a new file it pulls it away to the MSMQ. The problem is whenever I try to stop the service it returns me error(thats quite normal coz its constantly running). I am trying to Create an Event that can shutdown the service. Can anyone give me some feedback how to accomplish this task. I got a break from my colleague as he said me to implement waitformultiple objects instead for wait for single object.
Thx in adv.