---
name: "_SHGlobalCounterCreateNamedA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "0.9.25-2.1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/_SHGlobalCounterCreateNamedA"
---

# \_SHGlobalCounterCreateNamedA(3w)

## NAME

**\_SHGlobalCounterCreateNamedA** (SHLWAPI.422)

## SYNOPSIS

HANDLE \_SHGlobalCounterCreateNamedA\
  (\
   LPCSTR *lpszName*,\
   DWORD  *iInitial*\
  )

## DESCRIPTION

Create a semaphore.

## PARAMS

*lpszName* **\[In\]**  Name of semaphore.

*iInitial* **\[In\]**  Initial count for semaphore.

## RETURNS

A new semaphore handle.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/shlwapi/thread.c"**.

Debug channel **"shell"**.
