RtlProtectHeap - NtDoc

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

NTSYSAPI
VOID
NTAPI
RtlProtectHeap(
    _In_ PVOID HeapHandle,
    _In_ BOOLEAN MakeReadOnly
    );

#endif

View code on GitHub

HeapHandle

Address of heap.

Protect

If set, memory is protected to PAGE_READONLY. If zero, protect with PAGE_READWRITE.

Return value

Result is address of protected or unprotected heap.

Documented by

See also