---
name: "CloseServiceHandle"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CloseServiceHandle"
---

# CloseServiceHandle(3w)

## NAME

**CloseServiceHandle** (ADVAPI32.@)

## SYNOPSIS

BOOL CloseServiceHandle\
  (\
   SC\_HANDLE *hSCObject*\
  )

## DESCRIPTION

Close a handle to a service or the service control manager database.

## PARAMS

*hSCObject* **\[In\]**  Handle to service or service control manager database.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"winsvc.h"**.

Implemented in **"dlls/advapi32/service.c"**.

Debug channel **"service"**.
