RtlGetProcessHeaps - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

/**
 * The RtlGetProcessHeaps routine retrieves handles to the heaps currently active in the process.
 *
 * \param NumberOfHeaps The capacity, in entries, of the ProcessHeaps array.
 * \param ProcessHeaps A buffer that receives the heap handles.
 * \return The number of heaps active in the process.
 */
NTSYSAPI
ULONG
NTAPI
RtlGetProcessHeaps(
    _In_ ULONG NumberOfHeaps,
    _Out_ PVOID *ProcessHeaps
    );

#endif

View code on GitHub

NtDoc

No description available.

NTinternals.net (undocumented.ntinternals.net)

MaxNumberOfHeaps

Size of HeapArray.

Return value:

Number of process heaps.

See also