#ifndef _NTRTL_H
//
// Heap parameters.
//
typedef _Function_class_(RTL_HEAP_COMMIT_ROUTINE)
NTSTATUS NTAPI RTL_HEAP_COMMIT_ROUTINE(
_In_ PVOID Base,
_Inout_ PVOID* CommitAddress,
_Inout_ PSIZE_T CommitSize
);
View code on GitHub// ntifs.h
RTL_HEAP_COMMIT_ROUTINE RtlHeapCommitRoutine;
NTSTATUS RtlHeapCommitRoutine(
PVOID Base,
PVOID *CommitAddress,
PSIZE_T CommitSize
)
{...}
View the official Windows Driver Kit DDI referenceThis callback function is documented in Windows Driver Kit.
A RTL_HEAP_COMMIT_ROUTINE callback routine commits pages from the heap.
BaseBase address for the block of caller-allocated memory being used for the heap.
CommitAddressPointer to a variable that will receive the base address of the committed region of pages.
CommitSizePointer to a variable that will receive the actual size, in bytes, of the allocated region of pages.
RTL_HEAP_COMMIT_ROUTINE returns STATUS_SUCCESS or an appropriate error status.