Has anyone worked with direct memory access in VB.Net? I am referring to operations that were done with the old Poke and Peek of the old Basic.
Printable View
Has anyone worked with direct memory access in VB.Net? I am referring to operations that were done with the old Poke and Peek of the old Basic.
You need to use the Windows API, but yes, it can be done.
Here is an example of reading process memory.
I doubt that it can be really done the way the old Poke and Peek were done, but you can come pretty close. I believe that Windows gives each running process its own memory space. Thus address &H02DEAD55 is not the address in physical memory, but is redirected to that address within the memory space allocated by the OS. Therefore, you shouldn't be able to write into OS memory space, or that of another process (unless you know the handle of the process). The old Peek and Poke could write....pretty much anywhere.