![Xcalibur Systems LLC Logo](../icons/logo.png) |
ServiceHelperChangeServiceConfig2 Method |
Namespace: Xcalibur.NativeMethods.V2.ServicesAssembly: 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
)
<DllImportAttribute("advapi32.dll", CharSet := CharSet.Auto, SetLastError := true>]
Public Shared Function ChangeServiceConfig2 (
serviceHandle As IntPtr,
infoLevel As ServiceInfoLevel,
infoPointer As IntPtr
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Auto, SetLastError = true)]
static bool ChangeServiceConfig2(
IntPtr serviceHandle,
ServiceInfoLevel infoLevel,
IntPtr infoPointer
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)>]
static member ChangeServiceConfig2 :
serviceHandle : IntPtr *
infoLevel : ServiceInfoLevel *
infoPointer : IntPtr -> bool
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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also