Starting a serviceΒΆ
start_service() |
Starting a service |
SYNTAX
start_service(service_handle, arg_string)
Starts the specified service.
service_handle |
A handle obtained by create_service() or open_service(). |
arg_string |
A list of arguments to be passed to the service in standard command line format. Supply a null string if there are no arguments. An argument that contains embedded spaces must be quoted. Example: "-v \"-m=Let us pray\""
|
The function returns 0 if successful, or a non-zero value if an error occurs. The Windows error code is stored in sys.Errno.
RELATED TOPICS |