Chandra V
asked on
Contiguous Memory Allocation
Is there any API available in windows which allow you to allocate a fixed block of memory(say 100K) contiguously in RAM and reserve it for me(i.e, No data movement and virtual memory management).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm yet another guy with the same question: why do you want to do this?
A memory page (which is 4K) can be in one of three states
1) Free.
2) Reserved for your use.
3) Commited to storage.
This is controlled via the VirtualAlloc/VirtualFree functions (Search MSDN for details).
*however*
If what your really trying to do is allocate non-paged memory then the short answer is "NO, you can't do this".