I am writing a service.
When my service receives SERVICE_STOP or SERVICE_SHUTDOWN
signal, it is notifying the SCM that it is stopping,
and starts the stopping procedure.
In the stopping procedure,
it should stop another service. For example (c code):
system("net stop wins");
but when I do that, it does not work.
Any other command line would work, but stopping a service
just gets stuck.
Where have I gone wrong ?
Is there a special way to stop a service from inside service stopping procedure ?
Sorry I can't give more points.
That's all I got left.