windows - Different regions have the same allocation address -
i examine address space of process in windows 7. use virtualqueryex function, , part of example, handleofprocess_ handle of process:
memory_basic_information mbi; bool ok = (virtualqueryex(handleofprocess_, (lpcvoid)0x00020000, &mbi, sizeof(mbi))== sizeof(mbi)); ok = (virtualqueryex(handleofprocess_, (lpcvoid)0x00021000, &mbi, sizeof(mbi))== sizeof(mbi)); when debug, see, allocationbase of 0x00020000 0x00020000, , allocationbase of 0x00021000 0x00000000, allocationbase of region.
how can happen?
thanks all.
from documentation memory_basic_information:
for free pages, information in allocationbase, allocationprotect, protect, , type members undefined.
Comments
Post a Comment