A Win32 process running under Win64 can use up to 4 GB if IMAGE_FILE_LARGE_ADDRESS_AWARE is set, make sure Visual Studio Project Properties have this enabled:
Configuration Properties->Linker->System:
“Enable Large Addresses”
set to:
Support Addresses Larger Than 2 Gigabytes (/LARGEADDRESSAWARE)