---
name: "_SHGlobalCounterIncrement"
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/_SHGlobalCounterIncrement"
---

# \_SHGlobalCounterIncrement(3w)

## NAME

**\_SHGlobalCounterIncrement** (SHLWAPI.224)

## SYNOPSIS

LONG \_SHGlobalCounterIncrement\
  (\
   HANDLE *hSem*\
  )

## DESCRIPTION

Claim a semaphore.

## PARAMS

*hSem* **\[In\]**  Semaphore handle.

## RETURNS

The new count of the semaphore.

## 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"**.
