@EP_X0FF Not sure but I think Juan is confusing memory region size with size of bytes to modify (2 NOPs)
@Juan Base address is where the region of memory begins, region size will be divisible by PAGE_SIZE. On x86 typically this is 4096 bytes and can be dynamically obtained through GetSystemInfo->dwPageSize
P.S: Juan, you can use VirtualQuery on that address and in your MEMORY_BASIC_INFORMATION variable look at the struct member AllocationBase, it will be the base address.
@Juan Base address is where the region of memory begins, region size will be divisible by PAGE_SIZE. On x86 typically this is 4096 bytes and can be dynamically obtained through GetSystemInfo->dwPageSize
P.S: Juan, you can use VirtualQuery on that address and in your MEMORY_BASIC_INFORMATION variable look at the struct member AllocationBase, it will be the base address.
Accept nothing less than STATUS_SUCCESS