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

# GetProcessId(3w)

## NAME

**GetProcessId** (KERNEL32.@)

## SYNOPSIS

DWORD GetProcessId\
  (\
   HANDLE *hProcess*\
  )

## DESCRIPTION

Gets the a unique identifier of a process.

## PARAMS

*hProcess* **\[In\]**  Handle to the process.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**, check **[GetLastError(3w)](/GetLastError/3w.md)**.

## NOTES

The identifier is unique only on the machine and only until the process exits (including system shutdown).

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/process.c"**.

Debug channel **"process"**.
