Bueno como te decia, no soy un experto. Pero leyendo la documentacion de VirtualAlloc, lo que te devuelve es
Cita:
|
If the function succeeds, the return value is the base address of the allocated region of pages.
|
Esa direccion no te sirve para realizar el calculo de offset?