I am trying to read an address of a process which should be the number 20. I determined this address was located at the dll base offset + a number with an offset of 10. I am using
ReadProcessMemory(phandle, (void*)address, &number, sizeof(number), 0);
to read a specific address. My question is how do I correctly search for the address located at "57B86F68" + the 10 offset?
0x57b86f68 + 10or are you looking for the address (or some other kind of value) stored at that location? Either way, you shouldn't need to search for anything.ReadProcessMemorycallGetLastErrorto get more information about the reason ofReadProcessMemoryfailure. Check yourOpenProcessflags,PROCESS_VM_READalso should be there.