Hi Sharon,
Thanks for your post.
I think this issue has nothing to do with .Net Framework, so I suggest you
post such issue in SDK related newsgroup later on. Thanks
Based on my understanding, you want to allocate a block of memory in RAM
without paged out to the disk.
Windows provided a technology named AWE, which allows user applications to
use up to 64 GB of physical non-paged memory in a 32-bit virtual address
space on 32-bit platforms, with windowed views to this physical memory from
within the application's virtual address space.
More specificly, we use AllocateUserPhysicalPages to alloc the memory in
RAM, then use VirtualAlloc to reserve in process Virual memory space, then
use MapUserPhysicalPages to map the physical memory to the space we
reserved before. But please note, we have to enable SE_LOCK_MEMORY_NAME
privilege before these operations.
For more information, please refer to:
"Address Windowing Extensions"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base
/address_windowing_extensions.asp
"AWE Example"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base
/awe_example.asp
"Address Windowing Extensions and Microsoft Windows 2000 Datacenter Server"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/ht
ml/awewindata.asp
Hope this helps.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.