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

# RtlReAllocateHeap(3w)

## NAME

**RtlReAllocateHeap** (NTDLL.@)

## SYNOPSIS

PVOID RtlReAllocateHeap\
  (\
   HANDLE *heap*,\
   ULONG  *flags*,\
   PVOID  *ptr*,\
   SIZE\_T *size*\
  )

## DESCRIPTION

Change the *size* of a memory block allocated with **[RtlAllocateHeap(3w)](/RtlAllocateHeap/3w.md)**.

## PARAMS

*heap* **\[In\]**  Heap that block was allocated from.

*flags* **\[In\]**  **HEAP\_** *flags* from **"winnt.h"**.

*ptr* **\[In\]**  Block to resize.

*size* **\[In\]**  Size of the memory block to allocate.

## RETURNS

**Success:** A pointer to the resized block (which may be different).

**Failure:** **NULL**.

## IMPLEMENTATION

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

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

Debug channel **"heap"**.
