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

# OpenSCManagerA(3w)

## NAME

**OpenSCManagerA** (ADVAPI32.@)

## SYNOPSIS

SC\_HANDLE OpenSCManagerA\
  (\
   LPCSTR *lpMachineName*,\
   LPCSTR *lpDatabaseName*,\
   DWORD  *dwDesiredAccess*\
  )

## DESCRIPTION

Establish a connection to the service control manager and open its database.

## PARAMS

*lpMachineName* **\[In\]**  Pointer to machine name string.

*lpDatabaseName* **\[In\]**  Pointer to database name string.

*dwDesiredAccess* **\[In\]**  Type of access.

## RETURNS

**Success:** A Handle to the service control manager database

**Failure:** **NULL**

## IMPLEMENTATION

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

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

Debug channel **"service"**.
