Reputation: 71
When the lpAddress
parameter to a VirtualAlloc
function call is null, how does the OS determine which virtual address space region to allocate?
Upvotes: 1
Views: 499
Reputation: 5940
When VirtualAlloc function is given NULL for lpAddress parameter, the function will allocate in another Virtual Page ahead, and the allocation size will be rounded to that page boundary.
Resources:
Hope this helps
Upvotes: 1