Re: Forcing data into RAM memory only?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Slava

I am afraid everything below applies only if the target machine has more
than 4 GB of RAM

Consult PSDK/MSDN for "Address Windowing Extensions".
Basically, you need to call AllocateUserPhysicalPages() >> to allocate a
number of pages; then call VirtualAlloc() >>with the flag MEM_PHYSICAL to
reserve a window in your
address space; then call MapUserPhysicalPages() or
MapUserPhysicalPagesScatter() to map the physical pages >>into the window.


Regards

Anton Bassov
.