The StopService method places the service in the stopped state. It returns an integer value of 0 if the service was successfully ...

The StopService method places the service in the stopped state. It returns an integer value of 0 if the service was successfully stopped, 1 if the request is not supported, and any other number to indicate an error.