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

# SHGlobalCounterGetValue(3w)

## NAME

**SHGlobalCounterGetValue** (SHLWAPI.223)

## SYNOPSIS

LONG SHGlobalCounterGetValue\
  (\
   HANDLE *hSem*\
  )

## DESCRIPTION

Get the current count of a semaphore.

## PARAMS

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

## RETURNS

The current 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"**.
