I want to use ReadProcessMemory. It needs the "base address" as a second parameter. I have the process handle. How to I get the base address (HMODULE)?
I have tried calling VirtualQueryEx with the second parameter set to NULL. It returns 28 (is successful), but the information in the struct is garbage. The base address is always 0. I have tried EnumProcessModules but it only gives the DLLs that that application has loaded.
I want to obtain the address from within my program.