Show 

wntSvcStart

Starts a service.

Syntax:

wntSvcStart(server, service-name, flags, params, delimiter)

Parameters:

(s) server-name: the UNC name of the server on which the function will execute (e.g., "\\MYSERVER"), or ("") for the local computer.

(s) service-name: the name of the service to be looked for.

(i) flags: specifies the type of name that "service-name" represents:
0 display name (the name shown in Control Panel)
1000 service name (the actual registry key name)

(s) params: specifies a delimited list of parameters to be passed to the service, or a blank string ("") for no parameters. You can select any character you wish to be the delimiter, and must set the "delimiter" parameter accordingly.
 Note: driver services do not receive parameters.

(s) delimiter: specifies a single character, indicating the delimiter used for "params". For example, if "params" specifies a space-delimited list, then "delimiter" should be set to " ". If "params" is a blank string, then "delimiters" is ignored and can be set to a blank string.

Returns:

(i) returns 1.

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

wntSvcStart("", "Spooler", 0, "", "") ; start the Spooler service Exit
See Also:

wntSvcControl, wntSvcStatus