by refractor » Apr 8, 2004 @ 7:20pm
Look at the MEM_RESERVE flag.
Really I think you should reserve one large block of virtual address space, then commit it as you use it (mark the pages as PAGE_GUARD) using VirtualProtect.
<a href="http://msdn.microsoft.com/library/en-us/memory/base/creating_guard_pages.asp">This should help</a>