|
-
Sep 24th, 2008, 12:36 PM
#1
Thread Starter
New Member
Memory Writing and Reading
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.
-
Sep 24th, 2008, 12:52 PM
#2
Re: Memory Writing and Reading
You need to use the Windows API, but yes, it can be done.
Here is an example of reading process memory.
-
Sep 24th, 2008, 01:45 PM
#3
Re: Memory Writing and Reading
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.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|