RtlFreeHeap function (ntifs.h)
The RtlFreeHeap routine frees a memory block that was allocated from a heap by RtlAllocateHeap.
NTSYSAPI LOGICAL RtlFreeHeap( PVOID HeapHandle, ULONG Flags, _Frees_ptr_opt_ PVOID BaseAddress );
[in] A handle for the heap whose memory block is to be freed. This parameter is a handle returned by RtlCreateHeap.
[in, optional] A set of flags that controls aspects of freeing a memory block. Specifying the following value overrides the corresponding value that was specified in the Flags parameter when the heap was created by RtlCreateHeap.
|HEAP_NO_SERIALIZE||Mutual exclusion will not be used when RtlFreeHeap is accessing the heap.|
A pointer to the memory block to free. This pointer is returned by RtlAllocateHeap.
RtlFreeHeap returns TRUE if the block was freed successfully; FALSE otherwise.
|Minimum supported client||Available starting in Windows XP.|
|Header||ntifs.h (include Ntifs.h)|