---
name: "SHGlobalCounterIncrement"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
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"**.
