well, if you are speaking about stopping a real service, there are ready codes on this board.

guess the simpliest approach would be:
Code:

shell 'net stop "your Service"'



killing the process is not same as stopping the service.
_________________________
!

download KiXnet