Use StepService(). Take a look in MSDN at Stopping a Service in Platform SDK: DLLs, Processes, and Threads section.