Method ServiceController():stop() Foundation

This class method stops the service.

Syntax
:stop( <cName> ) --> lSuccess
Parameters
<cName>
Name of the service to be stopped.
Return

This class method calls the instance method :logSuccess() and returns .T. (true) when the service is sucessfully stopped, otherwise it calls the instance method :logError() and .F. (false) is returned. The reason for a failure can be queried by calling the method :getLastError().

Description

When this class method is called the Service Control Manager generates a Stop message to the service specified. This class method should be called prior to the class method :uninstall().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.