Click or drag to resize
Xcalibur Systems LLC Logo

ServiceHelperStartService Method

Starts a service.

StartService function


Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32", SetLastError = true)]
public static bool StartService(
	IntPtr serviceHandle,
	int serviceArgsCount,
	string[] serviceArgVectors
)

Parameters

serviceHandle  IntPtr
A handle to the service. This handle is returned by the or function, and it must have the access right.
serviceArgsCount  Int32
The number of strings in the serviceArgVectors array. If serviceArgVectors is NULL, this parameter can be zero.
serviceArgVectors  String
The null-terminated strings to be passed to the ServiceMain function for the service as arguments. If there are no arguments, this parameter can be NULL. Otherwise, the first argument (serviceArgVectors[0]) is the name of the service, followed by any additional arguments (serviceArgVectors[1] through lpServiceArgVectors[dwNumServiceArgs-1]). Driver services do not receive these arguments.

Return Value

Boolean
See Also