Click or drag to resize
Xcalibur Systems LLC Logo

ServiceHelperChangeServiceConfig2 Method

Changes the optional configuration parameters of a service.

ChangeServiceConfig2 function


Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static bool ChangeServiceConfig2(
	IntPtr serviceHandle,
	ServiceInfoLevel infoLevel,
	IntPtr infoPointer
)

Parameters

serviceHandle  IntPtr
A handle to the service.
infoLevel  ServiceInfoLevel
The configuration information to be changed.
infoPointer  IntPtr
A pointer to the new value to be set for the configuration information. The format of this data depends on the value of the infoLevel parameter. If this value is NULL, the information remains unchanged.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also