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

# RtlGetProcessHeaps(3w)

## NAME

**RtlGetProcessHeaps** (NTDLL.@)

## SYNOPSIS

ULONG RtlGetProcessHeaps\
  (\
   ULONG   *count*,\
   HANDLE\* *heaps*\
  )

## DESCRIPTION

Get the Heaps belonging to the current process.

## PARAMS

*count* **\[In\]**  size of *heaps*.

*heaps* **\[Out\]**  Destination array for heap **HANDLE**'s.

## RETURNS

**Success:** The number of Heaps allocated by the process.

**Failure:** **0.**

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/heap.c"**.

Debug channel **"heap"**.
