RtlSizeHeap(3w)

RtlSizeHeap3w

Usage

SIZE_T RtlSizeHeap
(
HANDLE heap,
ULONG flags,
const void* ptr
)

Overview

Get the actual size of a memory block allocated from a Heap.

Params

heap [In] Heap that block was allocated from.

flags [In] HEAP_ flags from "winnt.h".

ptr [In] Block to get the size of.

Returns

Success: The size of the block.

Failure: -1, heap or pointer are invalid.

Notes

The size may be bigger than what was passed to RtlAllocateHeap(3w).

Implementation

Declared in "winternl.h".

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

Debug channel "heap".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.