2OOO, 14 December
NTSYSAPI PVOID NTAPI
RtlProtectHeap(
IN PVOID HeapHandle, IN BOOLEAN Protect );
Address of heap.
If set, memory is protected to PAGE_READONLY. If zero, protect with PAGE_READWRITE.
Result is address of protected or unprotected heap.