I have a console application and I want to put it in windows service. I use ServiceAddService to add and start the service.
However, the application just sit there and doing nothing. I try to run it as console and it's working.
So, in resume, my application does not do anything if it is started as service.
Maybe there is an error in my call to ServiceAddService?