Using .NET functions to stop the Windows services.