Link to home
Start Free TrialLog in
Avatar of vesel
vesel

asked on

CreateEvent!!!

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.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany 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 vesel
vesel

ASKER

I did it finally but hey thx again
Fine that it works for you!

BTW: Just out of curiosity - your handle sounds like a turkish name, am I right?