Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Large Chunk Allocation<br />
RtlpAllocate<strong>Heap</strong> (large chunk):<br />
1<br />
2<br />
3<br />
dwSize += BASE_STRUCT_SIZE;<br />
…<br />
NtAllocateVirtualMemory(INVALID_HANDLE_VALUE, &baseAddr, 0,<br />
&dwSize, MEM_COMMIT, rwProt);<br />
…<br />
h<strong>Heap</strong>->largeTotal += dwSize;<br />
…<br />
chunk = (LPVOID) baseAddr + BASE_STRUCT_SIZE + HEAP_ENTRY_SIZE;<br />
…<br />
return chunk;