Mandy Taylor
Mandy Taylor

Reputation: 91

Read anywhere from the memory by DelphiXE2 with Assembly x64

How can I access any memory address in DelphiXE2 in Windows7 64bit? I tried to use the ReadProcessMemory function, but it does not working. However, I want to avoid to use the kernel driver to do this.

Sorry for my bad English.

Upvotes: 0

Views: 517

Answers (1)

David Heffernan
David Heffernan

Reputation: 613461

ReadProcessMemory is a function that is known to work correctly. It allows one process to read memory from another process. But the addresses it uses are still virtual memory addresses. They are relative to the virtual address space of the target process.

I suspect that what you are actually trying to do is read physical memory. In which case there is no alternative to kernel mode. Only in kernel mode can physical memory be addressed.

Upvotes: 3

Related Questions