I have found a comportement that i can't explain and I would have liked someone to explain to me why it happend.
To resume my situation i'm trying to read memory regions with VirtualQueryEx to a 64 bit program (notepad.exe)
What i already figure out:
- From a 32bits process i can read only 32bits process with using the MEMORY_BASIC_INFORMATION32 struct msdn doc
- From a 64bits process i can read 64bits and 32bits process with using the MEMORY_BASIC_INFORMATION64 struct msdn doc
- From "Any CPU" configuration i get exactly same comportement than if i run my program as x86 32bits program.
Then my question is : why ? I mean, i checked on msdn documentation they are saying that it should be runned in 64bits mode normaly because my computer is a 64bits OS. Then why it behaves like a 32bits process ?
Thank you a lot for your futur answer. I'm really curious to know.