![Xcalibur Systems LLC Logo](../icons/logo.png) |
ServiceHelperCloseServiceHandle Method |
Namespace: Xcalibur.NativeMethods.V2.ServicesAssembly: 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
)
<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function CloseServiceHandle (
managerHandle As IntPtr
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static bool CloseServiceHandle(
IntPtr managerHandle
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member CloseServiceHandle :
managerHandle : IntPtr -> bool
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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See AlsoReference
CreateService(IntPtr, String, String, UInt32, ServiceTypes, ServiceStartTypes, ServiceErrors, String, String, String, String, String, String)