Click or drag to resize
Xcalibur Systems LLC Logo

ServiceHelperCloseServiceHandle Method

Closes a handle to a service control manager or service object.

CloseServiceHandle function


Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static bool CloseServiceHandle(
	IntPtr managerHandle
)

Parameters

managerHandle  IntPtr
A handle to the service control manager object or the service object to close. Handles to service control manager objects are returned by the function, and handles to service objects are returned by either the or function.

Return Value

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