You may not be able to allocate all locations using VirtualAlloc as some of the location are pre-reserved by loader for various functions, e.g. thread stack. So if your location is conflicting with it, you may need to move it somewhere and its not simple

.
Visu