Sue
Thu Jan 04 11:52:09 CST 2007
Don't specify an address when you call VirtualAlloc. Pass address 0 and
it'll return the newly allocated address to you. The only reason to pass an
address to VirtualAlloc is if you already used VirtualAlloc (with addr 0 +
PAGE_RESERVE) to reserve an address range and now you want to use
VirtualAlloc with the reserved address in order to commit. Passing
addresses that you didn't allocate could result in you stealing someone
else's memory.
Address 0x20000000 is not shared memory; you can't use VirtualAlloc to
allocate that address.
Sue
sloh@microsoft.com (remove "online" from reply-to address)
http://blogs.msdn.com/ce_base/
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________